[binutils] error in readelf when trying to search for missing section header table

2023-05-08 Thread pini
Hello, I stumbled upon the following error when reading data from a file that has no section header table. The file I tested has the `e_shoff` and `e_shnum` members set to zero in the ELF header, which are the expected values when the file has no section header table (according to e.g. "gABI" doc

[binutils] error in readelf when trying to search for missing section header table

2023-05-08 Thread pini
Hello, I stumbled upon the following error when reading data from a file that has no section header table. The file I tested has the `e_shoff` and `e_shnum` members set to zero in the ELF header, which are the expected values when the file has no section header table (according to e.g. "gABI" doc