]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Add support for reading DW_FORM_addrx[1234] in .debug_addr.
authorMark Wielaard <mark@klomp.org>
Fri, 24 Nov 2017 10:18:39 +0000 (11:18 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 3 Apr 2018 11:13:07 +0000 (13:13 +0200)
commit4a97eb02bb0bcd6562f8777596e3bbad0045d7a4
tree373e25c5b122ecd4e98490769c29c719024234aa
parent402b7f76c51d05bbba5b16827779359bd797c7b0
libdw: Add support for reading DW_FORM_addrx[1234] in .debug_addr.

Recognize the new .debug_addr section. The CU will now hold a new
address base offset in that section for that CU. dwarf_form_addr will
decode DW_FORM_addrx[1234] and return addresses using that address
base from the .debug_addr. A new internal function read_3ubyte_unaligned
will try to read a 24-bit value depending on endianness of the underlying
file.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_begin_elf.c
libdw/dwarf_error.c
libdw/dwarf_formaddr.c
libdw/dwarf_formudata.c
libdw/libdwP.h
libdw/memory-access.h
src/ChangeLog
src/readelf.c