PR ld/13229
authorAlan Modra <amodra@gmail.com>
Sat, 8 Oct 2011 07:50:19 +0000 (07:50 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 8 Oct 2011 07:50:19 +0000 (07:50 +0000)
PR ld/13244
* elflink.c (elf_link_add_object_symbols): Don't make IR symbols
dynamic.

bfd/ChangeLog
bfd/elflink.c

index e2d28e67e36b3ceef5f86ee20446b63986daba50..8f99755a4ca0eb9c85013bb9867954bfb5ab8d08 100644 (file)
@@ -1,5 +1,13 @@
 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>
+
+       PR ld/13229
        * elflink.c (elf_link_output_extsym): Strip defined plugin symbols
        even when strip_discarded is false.
 
index 3ae4350684ce9a72af0ef3d68a9213a7c3e0b788..358ada8c28b06b4f2e589505f5ea112705a58c97 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;
This page took 0.039435 seconds and 4 git commands to generate.