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

check for std symbols #2

Open
gnzlbg opened this Issue Nov 12, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@gnzlbg

gnzlbg commented Nov 12, 2018

Test whether the final rlib or binary contain any std symbols or not.

The llvm-tools-preview component contains an llvm-nm that can be used to list all symbols in a binary, and the cargo-binutils sub-command can be used to find the appropriate llvm-nm binary for the current toolchain (https://internals.rust-lang.org/t/llvm-tools-a-new-rustup-component-for-binary-inspection-objdump-nm-size-and-profiling-profdata/7830/9).

With that one can check whether the final binary contains any std library symbols, a check that must pass independently of what all other checks say.

@hobofan

This comment has been minimized.

Owner

hobofan commented Nov 12, 2018

I explored that route, but ultimately got stuck on isolating the binary part out of the *.rlib files. Haven't had a look at llvm-tools-preview, though.

I'm generally pro doing that, though most likely as an optional thing if it requires llvm-tools-preview to be added as a component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment