-
Notifications
You must be signed in to change notification settings - Fork 83
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
Link error with v0.11.0 rust-lld: error: undefined symbol: mbedtls_pk_ec__extern mbedtls_cipher_get_cipher_mode__extern #304
Comments
It seems LTO does not works good with all compiler and linkers. |
xiaoyuxlu
added a commit
to xiaoyuxlu/rust-mbedtls
that referenced
this issue
Aug 11, 2023
LTO doesn't works good with rust-lld. Removed it to fix the link issue fortanix#304.
xiaoyuxlu
added a commit
to xiaoyuxlu/rust-mbedtls
that referenced
this issue
Aug 11, 2023
LTO doesn't works good with rust-lld. Remove LTO to fix the link issue fortanix#304.
Done. Please take a look #305. Thank you. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Aug 11, 2023
LTO doesn't works good with rust-lld. Remove LTO to fix the link issue #304.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying rust-mbedtls in no_std environment. This problem also exists in std environment with the following code.
version 0.9.1 works fine. But the new version 0.11.0 has the following problem.
Investigate:
Is it the reason of
.gnu.lto
?Comment out this line. This problem is gone.
rust-mbedtls/mbedtls-sys/build/build.rs
Line 144 in c274ee9
Can disable this optimization option?
@Taowyoo any comments?
The text was updated successfully, but these errors were encountered: