diff options
author | Alan Modra <amodra@gmail.com> | 2005-12-10 03:31:03 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-12-10 03:31:03 +0000 |
commit | 5adcfd8b2cb64fc867f94563fadad9629826ba67 (patch) | |
tree | 99b7b03178505820cdb5c563209131b35c1eb817 /bfd/elflink.c | |
parent | 21373e22503c1b425e3425e8bc1f052569ad9fe0 (diff) | |
download | gdb-5adcfd8b2cb64fc867f94563fadad9629826ba67.zip gdb-5adcfd8b2cb64fc867f94563fadad9629826ba67.tar.gz gdb-5adcfd8b2cb64fc867f94563fadad9629826ba67.tar.bz2 |
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
to test for linking shared libs, not info->shared.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index f31c5c1..127f002 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))) |