diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-04-21 17:01:12 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-04-21 17:01:12 +0000 |
commit | cb71adf12b02561228bafbb2497baafaa930e6b9 (patch) | |
tree | 838a0bcab435ce52d452377116fc5f320118c14a /bfd/elf32-target.h | |
parent | dcb210cb09286c22382d9e56642409d82db651b5 (diff) | |
download | gdb-cb71adf12b02561228bafbb2497baafaa930e6b9.zip gdb-cb71adf12b02561228bafbb2497baafaa930e6b9.tar.gz gdb-cb71adf12b02561228bafbb2497baafaa930e6b9.tar.bz2 |
* libelf.h (elf_obj_tdata): Add members for dynamic symbol table
handling.
* elfcode.h (bfd_section_from_shdr): Handle dynamic symbol table.
* elfcode.h (elf_slurp_symbol_table): Take additional parameter
to select static or dynamic symbol table and return number of
symbols slurped or -1 on error.
* elfcode.h (elf_get_symtab): Set bfd symcount from
elf_slurp_symbol_table result.
* elfcode.h (elf_get_dynamic_symtab_upper_bound,
elf_canonicalize_dynamic_symtab): New functions to handle dynamic
symbol table.
* elf32-target.h, elf64-target.h (BFD_JUMP_TABLE_DYNAMIC):
Change to handle dynamic symbol table, provide default definitions
for dynamic relocs.
* aoutx.h (howto_table_std, NAME(aout,swap_std_reloc_out),
NAME(aout,swap_std_reloc_in), aout_link_input_section_std,
aout_link_reloc_link_order): Handle r_jmptable and r_relative
relocations.
Diffstat (limited to 'bfd/elf32-target.h')
-rw-r--r-- | bfd/elf32-target.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bfd/elf32-target.h b/bfd/elf32-target.h index dc0ccf6..d661ced 100644 --- a/bfd/elf32-target.h +++ b/bfd/elf32-target.h @@ -59,6 +59,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define bfd_elf32_bfd_is_local_label bfd_generic_is_local_label #endif +#ifndef bfd_elf32_get_dynamic_reloc_upper_bound +#define bfd_elf32_get_dynamic_reloc_upper_bound \ + _bfd_nodynamic_get_dynamic_reloc_upper_bound +#endif +#ifndef bfd_elf32_canonicalize_dynamic_reloc +#define bfd_elf32_canonicalize_dynamic_reloc \ + _bfd_nodynamic_canonicalize_dynamic_reloc +#endif + #ifndef elf_info_to_howto_rel #define elf_info_to_howto_rel 0 #endif @@ -208,7 +217,7 @@ bfd_target TARGET_BIG_SYM = BFD_JUMP_TABLE_RELOCS (bfd_elf32), BFD_JUMP_TABLE_WRITE (bfd_elf32), BFD_JUMP_TABLE_LINK (bfd_elf32), - BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_DYNAMIC (bfd_elf32), /* backend_data: */ (PTR) &elf32_bed, @@ -296,7 +305,7 @@ bfd_target TARGET_LITTLE_SYM = BFD_JUMP_TABLE_RELOCS (bfd_elf32), BFD_JUMP_TABLE_WRITE (bfd_elf32), BFD_JUMP_TABLE_LINK (bfd_elf32), - BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + BFD_JUMP_TABLE_DYNAMIC (bfd_elf32), /* backend_data: */ (PTR) &elf32_bed, |