Version 5 lineprogram header (#411)
authorSeva Alekseyev <sevaa@yarxi.ru>
Mon, 13 Jun 2022 12:44:44 +0000 (08:44 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Jun 2022 12:44:44 +0000 (05:44 -0700)
commit6b82126ad8d1bed843569974281e53ee7619a0ec
treee36d8200f8ea975b6296cc0297390bcc2922530d
parent573fae9396c11bc01c1feb6a98b502f15707bc9f
Version 5 lineprogram header (#411)

* Version 5 lineprogram header, take 1

* Readelf/decodedline formatting fix

* DWARF 5 fields None, not missing

* Comment

* Sample binary

* Dump unit type in readelf info

* More languages described

* Describing form_line_strp

* Basic support for GNU_PROPERTY_X86_ISA_1

* Readelf decodedline format fixes to match with DWARF5

* Readelf test shorted out for the file/test where a bug in GNU readelf manifests, see PR #411.

* Newline :)

* Readelf' language names matched against binutils

* Comment about lineprogram files and directories

* GNU binutils bug worked around in a slightly less disturbing way - patched the binary, left a comment in the test script.

* Examples autotest no longer fails on Windows over expected path format

* Autotest fix

* Typo

* Windows compatibility, take 2

* No pathlib on Python 2

Co-authored-by: Seva Alekseyev <sevaa@nih.gov>
13 files changed:
elftools/common/py3compat.py
elftools/dwarf/descriptions.py
elftools/dwarf/dwarfinfo.py
elftools/dwarf/enums.py
elftools/dwarf/structs.py
elftools/elf/descriptions.py
elftools/elf/enums.py
examples/dwarf_die_tree.py
examples/dwarf_lineprogram_filenames.py
examples/examine_dwarf_info.py
scripts/readelf.py
test/run_readelf_tests.py
test/testfiles_for_readelf/dwarf_lineprogramv5.elf [new file with mode: 0644]