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

Release 0.2.33: supprot an actual disassembly of binaries and libraries #268

Merged
merged 8 commits into from
Apr 24, 2024

Conversation

pacak
Copy link
Owner

@pacak pacak commented Apr 22, 2024

Experimental support for disassembly, cargo-show-asm needs to be compiled with "disasm" feature.

With that you can pass --disasm flag to disassemble binary artifacts (.rlib files or executables) created by cargo.

To work with PGO, BOLT or other optimizations that require non standard build process you can pass path to binary directly with --file.

For cargo-show-asm to detect symbols in your code you need to disable stripping by adding something like this to Cargo.toml

[profile.release]
strip = false

At the moment interleaving rust source (--rust) is not supported

Fixes #174
Fixes #196

@pacak pacak force-pushed the disasm branch 2 times, most recently from 8ad394f to 2e03444 Compare April 22, 2024 12:11
@pacak pacak changed the title Perform actual disassembly of binaries and libraries Release 0.2.33: supprot an actual disassembly of binaries and libraries Apr 24, 2024
@pacak pacak merged commit 02d4e7f into master Apr 24, 2024
3 checks passed
@pacak pacak deleted the disasm branch April 24, 2024 14:08
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

Successfully merging this pull request may close these issues.

How to dump disassembly of PGO optimized builds? Implement objdump output format
1 participant