-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use local labels for inline asm #3451
Comments
What version of Clang is invoked and with what options? I'm asking so that we can try to reproduce this. We have a macOS build on our CI (Clang 9.1.0) that just runs |
|
I add some extra parameter in my project, but i can't reproduce in mbedtls project. cmake_policy(SET CMP0069 NEW)
cmake_policy(SET CMP0063 NEW)
set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE YES) |
Maybe |
|
I'm building iOS library on macOS. |
Fixes Mbed-TLS#3451 Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
Fixes Mbed-TLS#3451 Signed-off-by: okhowang(王沛文) <okhowang@tencent.com>
Description
Bug
OS
iPhoneSimulator
mbed TLS build:
Version: 2.22.0
OS version: 9.0
Configuration: default
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): Xcode 11.5
Additional environment information:
Expected behavior
building success
Actual behavior
got error when linking
unsupported:
is located inpadlock.c
which use named labels in inline asm.Steps to reproduce
I can't make an reproducible minimized project.
but according https://stackoverflow.com/questions/14506151/invalid-symbol-redefinition-in-inline-asm-on-llvm.
we should use local labels for inline asm, not named labels.
The text was updated successfully, but these errors were encountered: