gnzlbg / cargo-asm

cargo subcommand showing the assembly or llvm-ir generated for Rust code
https://github.com/gnzlbg/cargo-asm
Other
1.19k stars 37 forks source link

Cannot find #[no_mangle] functions #13

Open gnzlbg opened 6 years ago

gnzlbg commented 6 years ago

Currently cargo asm is unable to find #[no_mangle] functions.

bbqsrc commented 5 years ago

Any progress on this? :P

gnzlbg commented 5 years ago

Not really, but shouldn't be too hard to fix. In the code that gets a symbol name, and tries to demangle it, and see if it matches, we can just also try to see if the symbol name matches "as is".

Wanna give it a try?

bbqsrc commented 5 years ago

See https://github.com/gnzlbg/cargo-asm/pull/153. :smile: