-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
MULADDC_X2_CORE ARM crashes the linker (ld) (Android build) #6472
Comments
This looks like the same issue as #6089, If not, can you please share which compiler options are used, in particular the exact target? I can see the compiler version in the log, but I don't know exactly how the Android NDK settings map to compiler options. |
According to https://developer.arm.com/documentation/ddi0406/latest I believe you're using LDR.W because of this comment:
But how does this make any sense on thumb2 environment? What is this argument even based on? |
Yeah, before you replied I wasn't aware of the PR, in fact I've fixed it by getting rid of the .w suffix and I was writing the comment for it and I was going to make a PR but that PR looks to be right. Thanks! I hope the next release comes soon otherwise some other poor soul is gonna take some time to look into this again 😁 |
Summary
Linker crashes only when compiling with optimization and LTO (I haven't tested if LTO is related or not, but the debug builds, i.e. no optimization compiles which I suspect is because MULADDC_CANNOT_USE_R7 is defined when compiling in debug mode which doesn't use the inline assembly at all) (As a work around I'm undefining MBEDTLS_HAVE_ASM)
By the way the build is in THUMB-v2.
System information
Mbed TLS version (number or commit id): 0x03020100
Operating system and version: Windows 10, cross compiling for android
Configuration (if not default, please attach
mbedtls_config.h
): I believe it is the defaultCompiler and options (if you used a pre-built binary, please indicate how you obtained it): Visible in the summary
Additional environment information:
Expected behavior
To not crash.
Actual behavior
It crashes.
Steps to reproduce
Compile and link for ARMv7-A THUMB-2 with optimization and -flto
Additional information
Nah
The text was updated successfully, but these errors were encountered: