diff options
author | Richard Henderson <rth@redhat.com> | 1999-07-30 21:34:44 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-07-30 21:34:44 +0000 |
commit | 587ff49e9a50b61e86ea78ba3271f3ca24c1b0e8 (patch) | |
tree | c5de899ca7fe15148721af69c6bae1b9f03810ea /bfd/elf-bfd.h | |
parent | d512aa072eb56b1fb1a5f1649b8c52a140901916 (diff) | |
download | gdb-587ff49e9a50b61e86ea78ba3271f3ca24c1b0e8.zip gdb-587ff49e9a50b61e86ea78ba3271f3ca24c1b0e8.tar.gz gdb-587ff49e9a50b61e86ea78ba3271f3ca24c1b0e8.tar.bz2 |
Jakub Jelinek <jj@ultra.linux.cz>
* elf-bfd.h (struct elf_backend_data): Add
print_symbol_all and output_arch_syms backend methods.
* elfxx-target.h: Likewise.
* elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create,
sparc64_elf_add_symbol_hook, sparc64_elf_output_arch_syms,
sparc64_elf_get_symbol_type, sparc64_elf_symbol_processing): New
functions.
(sparc64_elf_size_dynamic_sections): Leave space for STT_REGISTER
symbols in .dynsym, add their names into .dynstr. Put those symbols
into dynlocal.
(sparc64_elf_finish_dynamic_sections): Fix up DT_SPARC_REGISTER
pointers to STT_REGISTER symbols in dynsym section.
(sparc64_elf_print_symbol_all): New function.
* elf.c (bfd_elf_print_symbol): Allow special backend symbol
printing using the print_symbol_all hook.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 577823b..3fa2513 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -581,6 +581,21 @@ struct elf_backend_data void (*elf_backend_post_process_headers) PARAMS ((bfd *, struct bfd_link_info *)); + /* This function, if defined, prints a symbol to file and returns the + name of the symbol to be printed. It should return NULL to fall + back to default symbol printing. */ + const char *(*elf_backend_print_symbol_all) + PARAMS ((bfd *, PTR, asymbol *)); + + /* This function, if defined, is called after all local symbols and + global symbols converted to locals are emited into the symtab + section. It allows the backend to emit special global symbols + not handled in the hash table. */ + boolean (*elf_backend_output_arch_syms) + PARAMS ((bfd *, struct bfd_link_info *, PTR, + boolean (*) PARAMS ((PTR, const char *, + Elf_Internal_Sym *, asection *)))); + /* The swapping table to use when dealing with ECOFF information. Used for the MIPS ELF .mdebug section. */ const struct ecoff_debug_swap *elf_backend_ecoff_debug_swap; |