summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-12-10 03:31:03 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-12-10 03:31:03 +0000
commit4815291b71b890336fb7f37e882b931ddf995bfa (patch)
tree56410a3e00ec6538b5167e3dfe5f8a4fb59ba4d1 /bfd
parente9c4d0e7d752ab350e01f74839ce163bd2ac10b2 (diff)
downloadbinutils-redhat-4815291b71b890336fb7f37e882b931ddf995bfa.tar.gz
* elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
to test for linking shared libs, not info->shared.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elflink.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 8d89bc16be..1a41fa3444 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-10 Alan Modra <amodra@bigpond.net.au>
+
+ * 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 <amodra@bigpond.net.au>
* elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index f31c5c1741..127f002bed 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)))