diff options
author | Alan Modra <amodra@bigpond.net.au> | 2003-07-21 00:24:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2003-07-21 00:24:10 +0000 |
commit | 6fef6d46e8fcc31c75a95ef3ba2e8fd3801815c1 (patch) | |
tree | 3977f1ef65c3d24e88ab86a98cfba0498bccf8e9 /bfd/elf-bfd.h | |
parent | 5dd45a08a0712ae0db3bc89fd463a88a6945d384 (diff) | |
download | gdb-6fef6d46e8fcc31c75a95ef3ba2e8fd3801815c1.tar.gz |
* elf-bfd.h (SYMBOL_REFERENCES_LOCAL, SYMBOL_CALLS_LOCAL): Use..
(_bfd_elf_symbol_refs_local_p): ..this. Declare.
* elflink.c (_bfd_elf_symbol_refs_local_p): New function.
* elf32-i386.c (elf_i386_relocate_section): Remove h NULL test
now done in _bfd_elf_symbol_refs_local_p.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 2fc64abb7e7..2aa0c597e6c 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -212,11 +212,11 @@ struct elf_link_hash_entry it's necessary for shared libs to also reference the .plt even though the symbol is really local to the shared lib. */ #define SYMBOL_REFERENCES_LOCAL(INFO, H) \ - !_bfd_elf_dynamic_symbol_p (H, INFO, 1) + _bfd_elf_symbol_refs_local_p (H, INFO, 0) /* Will _calls_ to this symbol always call the version in this object? */ #define SYMBOL_CALLS_LOCAL(INFO, H) \ - !_bfd_elf_dynamic_symbol_p (H, INFO, 0) + _bfd_elf_symbol_refs_local_p (H, INFO, 1) /* Records local symbols to be emitted in the dynamic symbol table. */ @@ -1498,6 +1498,9 @@ extern bfd_boolean _bfd_elf_link_sec_merge_syms extern bfd_boolean _bfd_elf_dynamic_symbol_p PARAMS ((struct elf_link_hash_entry *, struct bfd_link_info *, bfd_boolean)); +extern bfd_boolean _bfd_elf_symbol_refs_local_p + PARAMS ((struct elf_link_hash_entry *, struct bfd_link_info *, bfd_boolean)); + extern const bfd_target *bfd_elf32_object_p PARAMS ((bfd *)); extern const bfd_target *bfd_elf32_core_file_p |