From: Alan Modra Date: Sat, 8 Oct 2011 07:50:19 +0000 (+0000) Subject: PR ld/13229 X-Git-Tag: sid-snapshot-20111101~261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3df8c14822028ab319894b4c02c519073b62dba;p=thirdparty%2Fbinutils-gdb.git PR ld/13229 PR ld/13244 * elflink.c (elf_link_add_object_symbols): Don't make IR symbols dynamic. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e2d28e67e36..8f99755a4ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,13 @@ 2011-10-08 Alan Modra + PR ld/13229 + PR ld/13244 + * elflink.c (elf_link_add_object_symbols): Don't make IR symbols + dynamic. + +2011-10-08 Alan Modra + + PR ld/13229 * elflink.c (elf_link_output_extsym): Strip defined plugin symbols even when strip_discarded is false. diff --git a/bfd/elflink.c b/bfd/elflink.c index 3ae4350684c..358ada8c28b 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -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;