diff options
author | Alan Modra <amodra@gmail.com> | 2024-06-26 17:47:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-06-27 09:05:23 +0930 |
commit | f67619822044ab69b5225038d4e741a8ccdfc52c (patch) | |
tree | e9483f3f1bcab4941dd309084bec95f6988500fe /ld/po | |
parent | 057a2b4c4b57ef495dd32c9087e4af28bda41737 (diff) | |
download | gdb-f67619822044ab69b5225038d4e741a8ccdfc52c.zip gdb-f67619822044ab69b5225038d4e741a8ccdfc52c.tar.gz gdb-f67619822044ab69b5225038d4e741a8ccdfc52c.tar.bz2 |
Rewrite SHT_GROUP handling
This patch delays setting up elf_next_in_group, elf_sec_group and
elf_group_name when reading ELF object files until after all ELF
sections have been processed by bfd_section_from_shdr. This is simpler
and more robust than the current scheme of driving the whole process
on detecting a section with SHF_GROUP set.
* elf-bfd.h (struct elf_obj_tdata): Delete group_sect_ptr,
num_group and group_search_offset.
* elf.c (Elf_Internal_Group): Delete.
(setup_group): Delete function.
(IS_VALID_GROUP_SECTION_HEADER): Delete macro.
(is_valid_group_section_header),
(process_sht_group_entries): New functions.
(_bfd_elf_setup_sections): Handle group sections here..
(_bfd_elf_make_section_from_shdr): ..rather than here.
(bfd_section_from_shdr): Don't check SHT_GROUP validity here.
Diffstat (limited to 'ld/po')
0 files changed, 0 insertions, 0 deletions