]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR ld/13229
authorAlan Modra <amodra@gmail.com>
Tue, 25 Oct 2011 02:54:25 +0000 (02:54 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 25 Oct 2011 02:54:25 +0000 (02:54 +0000)
PR ld/13244
Apply mainline patches
2011-10-08  Alan Modra  <amodra@gmail.com>
* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
dynamic.

bfd/ChangeLog
bfd/elflink.c

index 1399037e781070ce30eecee605800637b7026be6..b97235b1d5392da41972a04055d76220f639e84a 100644 (file)
@@ -1,6 +1,12 @@
 2011-10-25  Alan Modra  <amodra@gmail.com>
 
        Apply mainline patches
+       2011-10-08  Alan Modra  <amodra@gmail.com>
+       PR ld/13229
+       PR ld/13244
+       * elflink.c (elf_link_add_object_symbols): Don't make IR symbols
+       dynamic.
+
        2011-10-08  Alan Modra  <amodra@gmail.com>
        * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
        even when strip_discarded is false.
index c1b5bee357b0ec5f76f62712de0c9a0778e84b9b..9558a2593cd294644a7277f90c12182874db1413 100644 (file)
@@ -4376,11 +4376,13 @@ error_free_dyn:
                dynsym = TRUE;
            }
 
+         /* We don't want to make debug symbol dynamic.  */
          if (definition && (sec->flags & SEC_DEBUGGING) && !info->relocatable)
-           {
-             /* We don't want to make debug symbol dynamic.  */
-             dynsym = FALSE;
-           }
+           dynsym = FALSE;
+
+         /* Nor should we make plugin symbols dynamic.  */
+         if ((abfd->flags & BFD_PLUGIN) != 0)
+           dynsym = FALSE;
 
          if (definition)
            h->target_internal = isym->st_target_internal;