diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-07-19 06:41:42 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-07-19 06:41:42 +0000 |
commit | aa37626c9e4c2aa85bb7f48ec6b8fdb6b60041f2 (patch) | |
tree | 8fe7c54db385a7af2f147108de3d2d040319af8a /bfd/elflink.c | |
parent | 1e364ec981cd5bb9a0349cebe7af2068f4c8236c (diff) | |
download | gdb-aa37626c9e4c2aa85bb7f48ec6b8fdb6b60041f2.zip gdb-aa37626c9e4c2aa85bb7f48ec6b8fdb6b60041f2.tar.gz gdb-aa37626c9e4c2aa85bb7f48ec6b8fdb6b60041f2.tar.bz2 |
2003-07-18 H.J. Lu <hongjiu.lu@intel.com>
* elflink.c (_bfd_elf_dynamic_symbol_p): Undo the last change.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 7446414..2fd588a 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2494,10 +2494,6 @@ _bfd_elf_dynamic_symbol_p (h, info, ignore_protected) || h->root.type == bfd_link_hash_warning) h = (struct elf_link_hash_entry *) h->root.u.i.link; - /* 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; - /* If it was forced local, then clearly it's not dynamic. */ if (h->dynindx == -1) return FALSE; @@ -2530,6 +2526,10 @@ _bfd_elf_dynamic_symbol_p (h, info, ignore_protected) break; } + /* 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; + /* Otherwise, the symbol is dynamic if binding rules don't tell us that it remains local. */ return !binding_stays_local_p; |