aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-12-07 16:17:40 +0000
committerNick Clifton <nickc@redhat.com>2020-12-07 16:17:40 +0000
commit846141822b5d8f6ecc549ce98be474522b95d9cb (patch)
tree18c789899026c6787687082c9c05254292e5efa4 /binutils
parent014cc7f849e8209623fc99264814bce7b3b6faf2 (diff)
downloadgdb-846141822b5d8f6ecc549ce98be474522b95d9cb.zip
gdb-846141822b5d8f6ecc549ce98be474522b95d9cb.tar.gz
gdb-846141822b5d8f6ecc549ce98be474522b95d9cb.tar.bz2
Remove references to the unofficial SHF_GNU_BUILD_NOTE section flag.
binutils * objcopy.c (is_mergeable_note_section): Remove reference to SHF_GNU_BUILD_NOTE. include * elf/common.h (SHF_GNU_BUILD_NOTE): Delete.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/objcopy.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 5f6d98f..d139b13 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-12-07 Nick Clifton <nickc@redhat.com>
+
+ * objcopy.c (is_mergeable_note_section): Remove reference to
+ SHF_GNU_BUILD_NOTE.
+
2020-12-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
PR 26945
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 04ba95e..06ecf3e 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -1311,11 +1311,7 @@ is_mergeable_note_section (bfd * abfd, asection * sec)
&& elf_section_data (sec)->this_hdr.sh_type == SHT_NOTE
/* FIXME: We currently only support merging GNU_BUILD_NOTEs.
We should add support for more note types. */
- && ((elf_section_data (sec)->this_hdr.sh_flags & SHF_GNU_BUILD_NOTE) != 0
- /* Old versions of GAS (prior to 2.27) could not set the section
- flags to OS-specific values, so we also accept sections that
- start with the expected name. */
- || (CONST_STRNEQ (sec->name, GNU_BUILD_ATTRS_SECTION_NAME))))
+ && (CONST_STRNEQ (sec->name, GNU_BUILD_ATTRS_SECTION_NAME)))
return TRUE;
return FALSE;