forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user