aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-02-04 19:30:47 +1030
committerAlan Modra <amodra@gmail.com>2022-02-05 16:45:38 +1030
commit8df52eeeb06efcccd6b840689ad8e11ebb264e7f (patch)
treed44d46440c42aa85341f01f73302b853ae0fb19e /gdb/python
parent06c441cceffb1437a3af51bfad43dce5fd200d9e (diff)
downloadbinutils-8df52eeeb06efcccd6b840689ad8e11ebb264e7f.zip
binutils-8df52eeeb06efcccd6b840689ad8e11ebb264e7f.tar.gz
binutils-8df52eeeb06efcccd6b840689ad8e11ebb264e7f.tar.bz2
Detect .eh_frame_hdr earlier for SIZEOF_HEADERS
Current code detects the need for PT_GNU_EH_FRAME using a field set by _bfd_elf_discard_section_eh_frame_hdr, which is called fairly late in the linking process. Use the elf hash table eh_info instead, which is set up earlier by size_dynamic_sections. * elf-bfd.h (struct output_elf_obj_tdata): Delete eh_frame_hdr. (elf_eh_frame_hdr): Don't define. (_bfd_elf_discard_section_eh_frame_hdr): Update prototype. * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame_hdr): Delete abfd parameter. Don't set elf_eh_frame_hdr. * elf.c (elf_eh_frame_hdr): New function. (get_program_header_size): Adjust elf_eh_frame_hdr call. (_bfd_elf_map_sections_to_segments): Likewise.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions