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

Add cargo-readelf subcommand. #89

Open
higuoxing opened this issue Aug 1, 2020 · 1 comment
Open

Add cargo-readelf subcommand. #89

higuoxing opened this issue Aug 1, 2020 · 1 comment

Comments

@higuoxing
Copy link

Hi, I found that the cargo-readobj command proxies the llvm-readobj tool and uses --elf-output-style=GNU to make the output compatible with gnu-readelf. LLVM do provide a tool called llvm-readelf which is a symbolic link to llvm-readobj but is more compatible with gnu-readelf.

For example, gnu-readelf -s dumps symbols, llvm-readelf -s dumps symbols but llvm-readobj --elf-output-style -s dumps sections.

Do you have interest in adding cargo-readelf subcommand? I can give it a try.

@adamgreig
Copy link
Member

I'd definitely like to see cargo-readelf here, especially if it's relatively simple to add and easy to maintain. It looks like rustup does not add a llvm-readelf to the toolchains dir, only llvm-readobj, but maybe we can invoke that in elf mode or something?

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

2 participants