diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2001-08-21 01:02:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2001-08-21 01:02:41 +0000 |
commit | 4e89ac30f3bf3708a601009e42e8b5570abf1f9e (patch) | |
tree | 154af44cedc457af55fb1cfdeb940f20e29fa850 /bfd/elf-bfd.h | |
parent | a6bacc8047a87ce89059ea0c0b393a501419af17 (diff) | |
download | gdb-4e89ac30f3bf3708a601009e42e8b5570abf1f9e.zip gdb-4e89ac30f3bf3708a601009e42e8b5570abf1f9e.tar.gz gdb-4e89ac30f3bf3708a601009e42e8b5570abf1f9e.tar.bz2 |
2001-08-20 H.J. Lu <hjl@gnu.org>
* elf-bfd.h (elf_obj_tdata): Add num_section_syms.
(elf_num_section_syms): New for num_section_syms.
* elf.c (elf_map_symbols): Set num_section_syms.
(_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
the section symbol index.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 1d68432..6609542 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -813,6 +813,7 @@ struct elf_obj_tdata struct bfd_strtab_hash *strtab_ptr; int num_locals; int num_globals; + int num_section_syms; asymbol **section_syms; /* STT_SECTION symbols for each section */ Elf_Internal_Shdr symtab_hdr; Elf_Internal_Shdr shstrtab_hdr; @@ -954,6 +955,7 @@ struct elf_obj_tdata #define elf_num_locals(bfd) (elf_tdata(bfd) -> num_locals) #define elf_num_globals(bfd) (elf_tdata(bfd) -> num_globals) #define elf_section_syms(bfd) (elf_tdata(bfd) -> section_syms) +#define elf_num_section_syms(bfd) (elf_tdata(bfd) -> num_section_syms) #define core_prpsinfo(bfd) (elf_tdata(bfd) -> prpsinfo) #define core_prstatus(bfd) (elf_tdata(bfd) -> prstatus) #define elf_gp(bfd) (elf_tdata(bfd) -> gp) |