]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Fix printing of .gdb_index symbol table offset.
authorMark Wielaard <mark@klomp.org>
Sat, 7 Sep 2024 00:15:18 +0000 (02:15 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 7 Sep 2024 00:30:05 +0000 (02:30 +0200)
commit1d5e9508f0607c7109280f76261e617f9851566b
tree92b9ec606b481169b48694fb5b1f47a68f6c9859
parent09d237b83c5d73a514b22e3bb269fd41b7aa0562
readelf: Fix printing of .gdb_index symbol table offset.

We were printing the addr_off instead of the sym_off. And the
testcases all expected the address offset instead of the symbol table
offset.

        * src/readelf.c (print_gdb_index_section): Print sym_off as
        Symbol table offset.
* tests/run-readelf-gdb_index.sh: Fix up all symbol table
        offsets that were the same as the address offset.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/readelf.c
tests/run-readelf-gdb_index.sh