-
Notifications
You must be signed in to change notification settings - Fork 480
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
Nightly rustc doesn't provide mcount symbol with -Z instrument-mcount flags #1392
Comments
@quark-zju do you have any idea? |
Bisect shows it's a regression introduced in Update: The LLVM bytecode generated by rustc look okay (not changed regarding on the LLVM attribute). So it might be a LLVM regression. |
@quark-zju thanks for checking this and sorry for the late reply. Do you mean that the bytecode contains calls to Btw, is it possible to change the rustc to use |
I have encountered the same issue for my tracing library as well, it's a change in how clang/llvm split functionality between themselves. I have found a workaround to be manually adding the required LLVM passes: rustc +nightly -Zinstrument-mcount -C passes="ee-instrument post-inline-ee-instrument" main.rs |
Thanks for the update! |
Update: recent LLVM changed the syntax a little bit. You need to run below:
|
I try to analyze wasmtime with uftrace, but it did not work with an error message that can't find mcount symbol.
So I try the example on the document, but it still did not work.
And here is the
nm
result with-Z instrument-mcount
flags.nm message
And here is my toolchain versions:
The text was updated successfully, but these errors were encountered: