diff options
author | Nick Clifton <nickc@redhat.com> | 2020-03-06 10:09:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-03-06 10:09:22 +0000 |
commit | a0dcf2970562c19140460a07b2c987714639cd7b (patch) | |
tree | 67161a1ca585012f45c4b117bb9ecbd8bbc17740 /binutils/ChangeLog | |
parent | bc49bfd849a9291b61bbe314505a35d07e130347 (diff) | |
download | gdb-a0dcf2970562c19140460a07b2c987714639cd7b.zip gdb-a0dcf2970562c19140460a07b2c987714639cd7b.tar.gz gdb-a0dcf2970562c19140460a07b2c987714639cd7b.tar.bz2 |
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.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 1fe7f15..840fc4d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,12 @@ +2020-03-06 Nick Clifton <nickc@redhat.com> + + * 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. + 2020-03-06 Alan Modra <amodra@gmail.com> PR 25637 |