ddbug prints the wrong strings for object file.
jrmuizel opened this issue · 4 comments
jrmuizel commented
Running ddbug on https://people-mozilla.org/~jmuizelaar/tmp/webrender-710bba83bc2d83b7.0.o.gz
prints 'rustc version 1.18.0-nightly (2564711e8 2017-04-04)' for every string.
jrmuizel commented
It looks like this is a gimli issue as I can reproduce the same problem with gimli's dwarfdump. The problem seems related to relocations.
jrmuizel commented
This problem is already known: gimli-rs/gimli#180
m4b commented
I'd suggest to perhaps leave this open; just encountered this myself and didn't see an issue, and almost opened a new one.
Strangely, this only seems to affect ELF object files, and the correct output seems more or less present for mach-o object files cross-compiled on a linux system, e.g. something compiled as follows on a host linux system:
rustc -g --emit=obj --target=x86_64-apple-darwin test.rs -o test.macho