diff options
author | Richard Henderson <rth@redhat.com> | 2003-07-16 21:47:36 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2003-07-16 21:47:36 +0000 |
commit | 5686517c773c06fbb428991a6353fd6428b66405 (patch) | |
tree | e2fbcd55f0322c6f118e23a62da5daa6b32cc2e4 /bfd/elfxx-ia64.c | |
parent | 48db5a3c43d6555c98aa61c70c23939857410b9c (diff) | |
download | gdb-5686517c773c06fbb428991a6353fd6428b66405.zip gdb-5686517c773c06fbb428991a6353fd6428b66405.tar.gz gdb-5686517c773c06fbb428991a6353fd6428b66405.tar.bz2 |
* elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Properly return false
for symbols defined locally plus -Bsymbolic. Tidy logic.
Diffstat (limited to 'bfd/elfxx-ia64.c')
-rw-r--r-- | bfd/elfxx-ia64.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/elfxx-ia64.c b/bfd/elfxx-ia64.c index c78abe7..2c01c97 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 |