I am running readelf -w on my (C++) executable to examine some debug sections and it prints the following warnings a couple of times:
$ readelf -w a.out
...
readelf: Warning: Corrupt offset (0x00000028) in range entry 1
readelf: Warning: Corrupt offset (0x00000044) in range entry 2
readelf: Warning: Corrupt offset (0x00000054) in range entry 3
...
I have no clue what this means and neither the manpage nor Google could help. Can anyone enlighten me?
The error comes from
dwarf.chere:What this means is hard to say without seeing output from
readelf --all. It could be that your compiler is producing bad debug info, but it could also be a bug inreadelf, possibly this one.You could try using
eu-readelffrom the elfutils package, which appears to be better maintained.