Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddbug prints the wrong strings for object file. #2

Closed
jrmuizel opened this issue May 24, 2017 · 4 comments
Closed

ddbug prints the wrong strings for object file. #2

jrmuizel opened this issue May 24, 2017 · 4 comments

Comments

@jrmuizel
Copy link

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
Copy link
Author

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
Copy link
Author

This problem is already known: gimli-rs/gimli#180

@m4b
Copy link

m4b commented Dec 4, 2017

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

@philipc philipc reopened this Dec 4, 2017
@philipc
Copy link
Collaborator

philipc commented Dec 28, 2018

Implemented in 2589d8f

@philipc philipc closed this as completed Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants