diff options
author | Mark Wielaard <mark@klomp.org> | 2020-08-25 15:33:00 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-08-25 15:33:00 +0100 |
commit | c3757b583d2448a5996e83e374fb96ac7938da35 (patch) | |
tree | d4bb1bd641b824dea293b0e2052c9b3788b5bbf0 /config/tls.m4 | |
parent | b04aa1fc8c9d4a79e6293a3a1df7507052afedf3 (diff) | |
download | gdb-c3757b583d2448a5996e83e374fb96ac7938da35.zip gdb-c3757b583d2448a5996e83e374fb96ac7938da35.tar.gz gdb-c3757b583d2448a5996e83e374fb96ac7938da35.tar.bz2 |
Fix the linker's handling of DWARF-5 line number tables.
When building with gcc with -gdwarf-5 ld tests (including ld-elf/dwarf.exp)
fail because they try to read the .debug_ranges section. But DWARF5
introduces a new .debug_rnglists section that encodes the address ranges
more efficiently. Implement reading the debug_rnglists in bfd/dwarf2.c.
Which makes all tests pass again and fixes several gcc testsuite tests
when defaulting to DWARF5.
* dwarf2.c (struct dwarf2_debug_file): Add dwarf_rnglists_buffer
and dwarf_rnglists_size fields.
(dwarf_debug_sections): Add debug_rnglists.
(dwarf_debug_section_enum): Likewise.
(read_debug_rnglists): New function.
(read_rangelist): New function to call either read_ranges or
read_rnglists. Rename original function to...
(read_ranges): ...this.
(read_rnglists): New function.
Diffstat (limited to 'config/tls.m4')
0 files changed, 0 insertions, 0 deletions