You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a handful of arguments that must be passed to Clang to compile for Android that ought to be handled by Clang itself. This bug tracks enumerating those and tracking the individual bugs for each.
Required, your code will not work without these (at least in some situations):
Aah, sorry I brought it up here. LTO + -Wa,--no-exec-stack is currently broken and needs to be fixed - the -mnoexecstack doesn't get passed to the backend because LTO creates a new backend during linking. That's orthogonal to what you're doing here. I'll file an internal bug :)
There are a handful of arguments that must be passed to Clang to compile for Android that ought to be handled by Clang itself. This bug tracks enumerating those and tracking the individual bugs for each.
Required, your code will not work without these (at least in some situations):
-stdlib=libc++
https://reviews.llvm.org/D53109 r346167-mfpu=vfpv3-d16
https://reviews.llvm.org/D53121 r344367(insignificant number of devices with Cortex-A8 CPUs, flag is no longer used)-Wl,--fix-cortex-a8
(no longer needed because PIE makes copy relocations unnecessary)-Wl,-z,nocopyreloc
-Wl,-z,relro
https://reviews.llvm.org/D53117 r344295Technically required, but will not result in an error if not used because the linker assumes it to be true:
-Wl,-z,now
https://reviews.llvm.org/D53117 r344295And finally,
Moved to r21:
-Wl,--warn-shared-textrel
https://reviews.llvm.org/D53344-Wa,--noexecstack
https://reviews.llvm.org/D53343-Wl,-z,noexecstack
https://reviews.llvm.org/D53343-fstack-protector-strong
The text was updated successfully, but these errors were encountered: