From: Alan Modra Date: Sat, 20 Jul 2013 09:57:17 +0000 (+0000) Subject: PR ld/15762 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=515c842b59fce33d562b54cb6bb436e7a4bfbd92;p=thirdparty%2Fbinutils-gdb.git PR ld/15762 PR ld/12761 * elflink.c (elf_link_add_object_symbols): Don't clobber .gnu.warning.symbol sections when shared. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fb91e5635a5..28e44670f8c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2013-07-20 Alan Modra + + PR ld/15762 + PR ld/12761 + * elflink.c (elf_link_add_object_symbols): Don't clobber + .gnu.warning.symbol sections when shared. + 2013-07-18 Roland McGrath * elf32-arm.c (elf32_arm_stub_long_branch_arm_nacl): New variable. diff --git a/bfd/elflink.c b/bfd/elflink.c index bcd3add478a..c80108d00e8 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3468,7 +3468,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. */