PR ld/15762
authorAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2013 09:50:16 +0000 (09:50 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 20 Jul 2013 09:50:16 +0000 (09:50 +0000)
PR ld/12761
* elflink.c (elf_link_add_object_symbols): Don't clobber
.gnu.warning.symbol sections when shared.

bfd/ChangeLog
bfd/elflink.c

index d3d6ace6eecd2a6e33a2708ed7c463271d5c6bee..319e61015ddbe2cfb84141e037988868be93543e 100644 (file)
@@ -1,3 +1,10 @@
+2013-07-20  Alan Modra  <amodra@gmail.com>
+
+       PR ld/15762
+       PR ld/12761
+       * elflink.c (elf_link_add_object_symbols): Don't clobber
+       .gnu.warning.symbol sections when shared.
+
 2013-07-19  Nick Clifton  <nickc@redhat.com>
 
        * elf32-rx.c (rx_elf_relocate_section): Fix typo: move
index 34bbcd51dfc051717610b369b1185c052ef930d1..55f00da08c912deb6287359c765375b134b78881 100644 (file)
@@ -3444,7 +3444,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
                      FALSE, bed->collect, NULL)))
                goto error_return;
 
-             if (! info->relocatable)
+             if (!info->relocatable && !info->shared)
                {
                  /* Clobber the section size so that the warning does
                     not get copied into the output file.  */
This page took 0.030356 seconds and 4 git commands to generate.