diff options
author | Alan Modra <amodra@gmail.com> | 2024-04-22 09:30:23 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-23 11:19:35 +0930 |
commit | 6705e14a9943e48ccf0f4829a9c23d66b5b83aae (patch) | |
tree | cc24d5b4bd760a45f5b242b774970b8f8b473801 /binutils/dllwrap.c | |
parent | 6bfde7e33e2220766b82abd5b88b4b33028d260a (diff) | |
download | gdb-6705e14a9943e48ccf0f4829a9c23d66b5b83aae.zip gdb-6705e14a9943e48ccf0f4829a9c23d66b5b83aae.tar.gz gdb-6705e14a9943e48ccf0f4829a9c23d66b5b83aae.tar.bz2 |
copy_private_symbol_data
bfd_copy_private_symbol_data is a bfd function that appeared in
commit 89665c8562da a long time ago, but seemingly wasn't used
anywhere until Jan added it to gas/symbols.c in commit 6a2b6326c21e.
The function is used to modify ELF symbol st_shndx for symbols defined
in odd sections like .symtab, so that they get the corresponding
section st_shndx in an output file. This patch fixes some bitrot in
the function. After commit c03551323c04 which introduced
output_elf_obj_tdata, elf_strtab_sec and elf_shstrtab_sec will
segfault if used on an input bfd.
PR 14493
* elf.c (_bfd_elf_copy_private_symbol_data): Don't use
elf_strtab_sec and elf_shstrtab_sec.
Diffstat (limited to 'binutils/dllwrap.c')
0 files changed, 0 insertions, 0 deletions