]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Support .gdb_index version 9
authorAaron Merey <amerey@redhat.com>
Tue, 31 Oct 2023 20:00:27 +0000 (16:00 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 2 Nov 2023 17:16:53 +0000 (13:16 -0400)
commite0572989b33b7e4319d42628fad782fa97825646
tree3307d4426ff9e6a32a78ec3e3eef1eed51a21155
parent14c5658acfc24367bc1cf63b0e04b70220bedad2
readelf: Support .gdb_index version 9

Version 9 adds a "shortcut table" to the index.  The shortcut table contains
the name and language of the main function, if it exists.

A testcase added in this patch uses an executable written with Fortran.
This is because gdb does not currently populate the shortcut table of
C/C++ programs (see sourceware PR30996).

Signed-off-by: Aaron Merey <amerey@redhat.com>
src/readelf.c
tests/Makefile.am
tests/run-readelf-gdb_index.sh
tests/testfilegdbindex9-no-maininfo.bz2 [new file with mode: 0755]
tests/testfilegdbindex9.bz2 [new file with mode: 0755]