aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-07-20 09:50:16 +0000
committerAlan Modra <amodra@gmail.com>2013-07-20 09:50:16 +0000
commit436e1ebaccb69bb0a723708984c1b1bbdb0f3d14 (patch)
tree9d31d95e6882fb7eab6a9cfd56c883d3bd293f71 /bfd/elflink.c
parent702535171d7ba9875f5aea9a0cc5a4b5faecd5c0 (diff)
downloadgdb-436e1ebaccb69bb0a723708984c1b1bbdb0f3d14.zip
gdb-436e1ebaccb69bb0a723708984c1b1bbdb0f3d14.tar.gz
gdb-436e1ebaccb69bb0a723708984c1b1bbdb0f3d14.tar.bz2
PR ld/15762
PR ld/12761 * elflink.c (elf_link_add_object_symbols): Don't clobber .gnu.warning.symbol sections when shared.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 34bbcd5..55f00da 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -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. */