-
Notifications
You must be signed in to change notification settings - Fork 8
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
Linker can't find core::panicking::panic when lto is turned on #62
Comments
Not sure if this is the right place or if rust-lang/rust is the place to put this issue? |
I think you're running into the same thing as rust-lang/compiler-builtins#347? Essentially, compiler-builtins expects to be compiled with [profile.dev.package.compiler_builtins]
overflow-checks = false to your |
Thank you very much! |
Hi there, I've encountered into the same issue and after googling reach this issue. The trick with [profile.dev.package.compiler_builtins]
overflow-checks = false works for me, but I think it is a Please correct me if I'm wrong. |
With
-Z build-std
andlto = true
, the linker can't link tocore::panicking::panic
.The Issue might have to do with the fact that neither the
binutils-arm-none-eabi
toolchain norllvm-objdump
can read the generatedlibcore-***.rlib
file:Steps to Repoduce
src/main.rs
Cargo.toml
With
build-std
Without
build-std
:Without
tlo = true
:Version:
The text was updated successfully, but these errors were encountered: