]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
elf: Don't merge .note.gnu.property section in IR
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 29 Nov 2018 12:44:20 +0000 (04:44 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 1 Dec 2018 16:59:18 +0000 (08:59 -0800)
.note.gnu.property section in IR inputs should be ignored.  Don't
merge them.

PR ld/23929
* elf-properties.c (_bfd_elf_link_setup_gnu_properties): Don't
merge .note.gnu.property section in IR inputs.

(cherry picked from commit ffd9e4d0225d45d1603d09e06151c388589e063f)

bfd/ChangeLog
bfd/elf-properties.c

index fa4173da3aa43af2d3807db7614a9b7ce9e455a2..d62a1fe3061e1760157168403616fc43d3b512e5 100644 (file)
@@ -1,3 +1,9 @@
+2018-12-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23929
+       * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Don't
+       merge .note.gnu.property section in IR inputs.
+
 2018-11-30  Alan Modra  <amodra@gmail.com>
 
        PR 23937
index 50c0e9d7035a76efaa27e9957521f6d5b90b18d0..944e1744a81ddcb1a1bd692b94b8a09e5faa3f71 100644 (file)
@@ -350,7 +350,8 @@ _bfd_elf_link_setup_gnu_properties (struct bfd_link_info *info)
 
   /* Merge .note.gnu.property sections.  */
   for (abfd = info->input_bfds; abfd != NULL; abfd = abfd->link.next)
-    if (abfd != first_pbfd && (abfd->flags & DYNAMIC) == 0)
+    if (abfd != first_pbfd
+       && (abfd->flags & (DYNAMIC | BFD_PLUGIN)) == 0)
       {
        elf_property_list *null_ptr = NULL;
        elf_property_list **listp = &null_ptr;