diff options
author | Alan Modra <amodra@gmail.com> | 2003-07-21 00:24:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-07-21 00:24:10 +0000 |
commit | f6c52c13681f9c80b3e9cbf20464766c7d29e2e3 (patch) | |
tree | a6b27b3a1c0ccb9a909322dbe7ff2066bb714285 /bfd/elf-bfd.h | |
parent | aaba06d9395fb75c14d6f9374cfe1a17288ca900 (diff) | |
download | gdb-f6c52c13681f9c80b3e9cbf20464766c7d29e2e3.zip gdb-f6c52c13681f9c80b3e9cbf20464766c7d29e2e3.tar.gz gdb-f6c52c13681f9c80b3e9cbf20464766c7d29e2e3.tar.bz2 |
* 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 2fc64ab..2aa0c59 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 |