Re: [PATCH] readelf: Allow .gdb_index const table to be empty

2024-09-10 Thread Mark Wielaard
Hi, On Sun, 2024-09-08 at 00:00 +0200, Mark Wielaard wrote: > 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_

[PATCH] readelf: Allow .gdb_index const table to be empty

2024-09-07 Thread Mark Wielaard
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