diff options
author | Alan Modra <amodra@gmail.com> | 2002-07-25 06:54:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-07-25 06:54:51 +0000 |
commit | 8c58d23b6d454082b0e55ccb2a948397ab4b58c8 (patch) | |
tree | 6875b3e59ffda2ae412d37c033acf16dcf9bfbac /bfd/elf-bfd.h | |
parent | 8c554d79d1d9d2ee28545381da20e7a88133266e (diff) | |
download | gdb-8c58d23b6d454082b0e55ccb2a948397ab4b58c8.zip gdb-8c58d23b6d454082b0e55ccb2a948397ab4b58c8.tar.gz gdb-8c58d23b6d454082b0e55ccb2a948397ab4b58c8.tar.bz2 |
* elf-bfd.h (_bfd_elf32_link_record_local_dynamic_symbol): Define
as elf_link_record_local_dynamic_symbol.
(_bfd_elf64_link_record_local_dynamic_symbol): Likewise.
(elf_link_record_local_dynamic_symbol): Declare. Now returns int.
* elflink.h (elf_link_record_local_dynamic_symbol): Move to..
* elflink.c: .. here. Use bfd_elf_get_elf_syms. Check whether an
attempt is made to record a symbol in a discarded section, and
return `2' in that case.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 4623e78..8a7fff1 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1558,10 +1558,12 @@ extern Elf_Internal_Rela *_bfd_elf64_link_read_relocs #define bfd_elf64_link_record_dynamic_symbol \ _bfd_elf_link_record_dynamic_symbol -extern boolean _bfd_elf32_link_record_local_dynamic_symbol - PARAMS ((struct bfd_link_info *, bfd *, long)); -extern boolean _bfd_elf64_link_record_local_dynamic_symbol +extern int elf_link_record_local_dynamic_symbol PARAMS ((struct bfd_link_info *, bfd *, long)); +#define _bfd_elf32_link_record_local_dynamic_symbol \ + elf_link_record_local_dynamic_symbol +#define _bfd_elf64_link_record_local_dynamic_symbol \ + elf_link_record_local_dynamic_symbol extern boolean _bfd_elf_close_and_cleanup PARAMS ((bfd *)); |