From: Alan Modra Date: Sat, 10 Dec 2005 03:31:03 +0000 (+0000) Subject: * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5adcfd8b2cb64fc867f94563fadad9629826ba67;p=binutils-gdb.git * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable to test for linking shared libs, not info->shared. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8d89bc16bee..1a41fa34444 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2005-12-10 Alan Modra + + * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable + to test for linking shared libs, not info->shared. + 2005-12-08 Alan Modra * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms. diff --git a/bfd/elflink.c b/bfd/elflink.c index f31c5c1741a..127f002bedc 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -9068,7 +9068,7 @@ 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->shared + || (!info->executable && h->def_regular && ELF_ST_VISIBILITY (h->other) != STV_INTERNAL && ELF_ST_VISIBILITY (h->other) != STV_HIDDEN)))