* elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in

executables when export_dynamic.
This commit is contained in:
Alan Modra 2011-11-08 13:49:11 +00:00
parent 560c8763d3
commit 409ff343a4
2 changed files with 6 additions and 1 deletions

View file

@ -11947,7 +11947,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