diff options
author | Alan Modra <amodra@gmail.com> | 2021-09-02 09:56:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-09-02 13:48:21 +0930 |
commit | b03b65e2aa3243bc0224ba3f933a3e94f1eed8a1 (patch) | |
tree | a2bc19c802d9ae973d9af4a0203bbe4594759c5f /bfd/elf-bfd.h | |
parent | 36f61bf2ad936edfb76eda706eb3b081a61d5a5a (diff) | |
download | gdb-b03b65e2aa3243bc0224ba3f933a3e94f1eed8a1.zip gdb-b03b65e2aa3243bc0224ba3f933a3e94f1eed8a1.tar.gz gdb-b03b65e2aa3243bc0224ba3f933a3e94f1eed8a1.tar.bz2 |
SHT_SYMTAB_SHNDX handling
.symtab_shndx section contents is an array, one entry for each symbol
in .symtab, present when the number of symbols exceeds a little less
than 64k. Since the mapping is 1-1 with symbols there is no need to
keep both dest_index and destshndx_index in elf_sym_strtab. Instead,
just make sure that the shndx pointers to the swap functions are kept
NULL when .symtab_shndx does not exist. Also, strtabcount in the
linker's elf hash table is incremented in lock-step with the output
symcount, so that can disappear too.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index b3f56b8..c247d52 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -538,7 +538,6 @@ struct elf_sym_strtab { Elf_Internal_Sym sym; unsigned long dest_index; - unsigned long destshndx_index; }; struct bfd_link_needed_list @@ -622,10 +621,6 @@ struct elf_link_hash_table section. */ struct elf_strtab_hash *dynstr; - /* The number of symbol strings found in the link which must be put - into the .strtab section. */ - bfd_size_type strtabcount; - /* The array size of the symbol string table, which becomes the .strtab section. */ bfd_size_type strtabsize; |