summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-07-16 21:47:36 +0000
committerRichard Henderson <rth@redhat.com>2003-07-16 21:47:36 +0000
commit3eaf0ae51c1dd2a7f127686fc73ddc558021f70a (patch)
tree07124946699ca34a0a18936ba876fa15790e3c1e
parent630cf795ba29a6ded7229450f196d28b1f4d5cae (diff)
downloadgdb-3eaf0ae51c1dd2a7f127686fc73ddc558021f70a.tar.gz
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
for symbols defined locally plus -Bsymbolic. Tidy logic.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-ia64.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7ed0b1e72ac..fafeb74782b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-16 Richard Henderson <rth@redhat.com>
+
+ * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
+ for symbols defined locally plus -Bsymbolic. Tidy logic.
+
2003-07-15 Richard Sandiford <rsandifo@redhat.com>
* archures.c (bfd_mach_mips7000): New.
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c
index c78abe7b13c..2c01c971bc9 100644
--- a/bfd/elfxx-ia64.c
+++ b/bfd/elfxx-ia64.c
@@ -1653,13 +1653,12 @@ elfNN_ia64_dynamic_symbol_p (h, info)
|| h->root.type == bfd_link_hash_defweak)
return TRUE;
- if ((!info->executable && (!info->symbolic || info->allow_shlib_undefined))
- || ((h->elf_link_hash_flags
- & (ELF_LINK_HASH_DEF_DYNAMIC | ELF_LINK_HASH_REF_REGULAR))
- == (ELF_LINK_HASH_DEF_DYNAMIC | ELF_LINK_HASH_REF_REGULAR)))
+ /* If it isn't defined locally, then clearly it's dynamic. */
+ if ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) == 0)
return TRUE;
- return FALSE;
+ /* Identify the cases where name binding rules say it resolves local. */
+ return !(info->executable || info->symbolic);
}
static bfd_boolean