From a0dcf2970562c19140460a07b2c987714639cd7b Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 6 Mar 2020 10:09:22 +0000 Subject: Fix an abort triggered when objcopy is used to set the "share" section flag on an ELF section. binutils* objcopy.c (check_new_section_flags): New function. Reject the SEC_COFF_SHARED flag if the target is not a COFF binary. (copy_object): Call check_new_section_flags. (setup_section): Likewise. * doc/binutils.texi (objcopy): Add a note that the 'share' section flag cannot be applied to ELF binaries. bfd * elf.c (_bfd_elf_set_section_contents): Replace call to abort with error messages and failure return values. --- bfd/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bfd/ChangeLog') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 838b07f..0df437b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-03-06 Nick Clifton + + * elf.c (_bfd_elf_set_section_contents): Replace call to abort + with error messages and failure return values. + 2020-03-05 Max Filippov * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic -- cgit v1.1