]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Allow .gdb_index const table to be empty
authorMark Wielaard <mark@klomp.org>
Sat, 7 Sep 2024 22:00:05 +0000 (00:00 +0200)
committerMark Wielaard <mark@klomp.org>
Tue, 10 Sep 2024 16:04:14 +0000 (18:04 +0200)
commit90973df78628a5aefa973d676a4402285e93c9cf
tree2f6a14899cf910e25aed8101a3431acaee8457cd
parent1ccbd384375d4c84aecc6dc382d372f5979a1f0c
readelf: Allow .gdb_index const table to be empty

The .gdb_index const table can be empty, if no symbol table entry
refers to a name or CU. Which technically means the symbol table is
empty or has only zero members.

      * src/readelf.c (print_gdb_index_section): Check const_off is
      not past the end of the data section, it can be at the end.

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