summaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2013-07-20 09:50:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2013-07-20 09:50:16 +0000
commit8f417637859b5193fe99e5098d2ad5a23cfec0d2 (patch)
tree484d8bd53bdb6d0a40b19c0d9ade18d5e5af3811 /bfd/elflink.c
parentb324e27fd80b642304d174c2709f9a38dc72bb51 (diff)
downloadbinutils-redhat-8f417637859b5193fe99e5098d2ad5a23cfec0d2.tar.gz
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 34bbcd51df..55f00da08c 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. */