ELF/BFD: Propagate the return status from backend section processing
[deliverable/binutils-gdb.git] / bfd / elf.c
index d71efd1e0f775466c429ec81d143cea00d310e8c..dedf35feb3c468d020025b3528a2c6544107db04 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6354,7 +6354,8 @@ _bfd_elf_write_object_contents (bfd *abfd)
        = _bfd_elf_strtab_offset (elf_shstrtab (abfd),
                                  i_shdrp[count]->sh_name);
       if (bed->elf_backend_section_processing)
-       (*bed->elf_backend_section_processing) (abfd, i_shdrp[count]);
+       if (!(*bed->elf_backend_section_processing) (abfd, i_shdrp[count]))
+         return FALSE;
       if (i_shdrp[count]->contents)
        {
          bfd_size_type amt = i_shdrp[count]->sh_size;
This page took 0.023754 seconds and 4 git commands to generate.