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/elfxx-target.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/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index d40a870..3a787a2 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -297,6 +297,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef elf_backend_post_process_headers #define elf_backend_post_process_headers NULL #endif +#ifndef elf_backend_print_symbol_all +#define elf_backend_print_symbol_all NULL +#endif +#ifndef elf_backend_output_arch_syms +#define elf_backend_output_arch_syms NULL +#endif /* Previously, backends could only use SHT_REL or SHT_RELA relocation sections, but not both. They defined USE_REL to indicate SHT_REL @@ -369,6 +375,8 @@ static CONST struct elf_backend_data elfNN_bed = elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook, elf_backend_post_process_headers, + elf_backend_print_symbol_all, + elf_backend_output_arch_syms, elf_backend_ecoff_debug_swap, ELF_MACHINE_ALT1, ELF_MACHINE_ALT2, |