From: Alan Modra Date: Tue, 8 Nov 2011 13:50:26 +0000 (+0000) Subject: * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in X-Git-Tag: binutils-2_22~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c422a9b405973f2e664c18a4cb2cc0375b2976fa;p=thirdparty%2Fbinutils-gdb.git * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in executables when export_dynamic. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 93f8ff994d2..c3899c1dd8b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-11-09 Alan Modra + + * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in + executables when export_dynamic. + 2011-11-08 Alan Modra * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename diff --git a/bfd/elflink.c b/bfd/elflink.c index dfd9b43c93c..bb82f5baee0 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -11940,7 +11940,7 @@ bfd_elf_gc_mark_dynamic_ref_symbol (struct elf_link_hash_entry *h, void *inf) if ((h->root.type == bfd_link_hash_defined || h->root.type == bfd_link_hash_defweak) && (h->ref_dynamic - || (!info->executable + || ((!info->executable || info->export_dynamic) && h->def_regular && ELF_ST_VISIBILITY (h->other) != STV_INTERNAL && ELF_ST_VISIBILITY (h->other) != STV_HIDDEN