Open devjgm opened 3 years ago
Hi!
Thanks for the report!
Could you please attach the eu-readelf output?
Also please share output of --debug-dump=loc
for your object.
The --debug-dump=info
file is too big (26MB gzipped) and github will not allow me to attach it. bzip2 compressed it better, but GH won't let me upload a .bz2
file. So I've bzip2'd the file, then renamed it to have a .gz
extension.
debug-dump-info.txt.actually-bzip2-not.gz
The patch for the first part of the request looks reasonable. Would you like to create a pull request?
Sure, I sent: https://github.com/lvc/abi-dumper/pull/29
But if there are tests for this repo, I don't know how to run them.
As I understand, the loc
section is not presented anymore in your object and loclists
is dumped instead. It has a different format and need to be parsed by abi-dumper.
We recently upgraded our "abi-dumper" build from fedora:33 -> fedora:34 and we started seeing the following errors with our project google-cloud-cpp
Looking at the
eu-readelf
output for one of the offending lines above (17646) we see that the output is:In the above output the
18446744073709551615
(==0xFFFFFFFFFFFFFFFF
) is the number that's too big for the perl call tohex($2)
in abi-dumper (it's also not hex).The issue may be a bug in
elfutils
on Fedora 34. Note that there is also a line sayingERROR: invalid debug_loc section of object, please fix your elf utils
in the first block.However, it would be nice if
abi-dumper
could workaround this issue. A diff like the following seems to quiet the Integer overflow warnings for me: