Android: Don't build LDC with NDK's implicit -fstack-protector-strong#5072
Android: Don't build LDC with NDK's implicit -fstack-protector-strong#5072kinke wants to merge 10 commits intoldc-developers:masterfrom
-fstack-protector-strong#5072Conversation
9bf0758 to
7b6c053
Compare
|
@robertkirkman: It'd be awesome if you could test the Android aarch64 CI artifact here: https://github.com/ldc-developers/ldc/actions/runs/22321787659/artifacts/5623463625 |
|
Thanks! I'll test it ASAP |
|
Ok, I've tested this one, it's giving a different result, so something did change. This one has |
|
Damn, looks genuine indeed then. :( - Thx for testing! |
|
I'll now try without alternate signal stack on Android: ldc-developers/llvm-project@e7130c4 |
7b6c053 to
8e68e5c
Compare
|
Damn, that's not it either, no change. |
8e68e5c to
5586778
Compare
|
Switching LLVM+LDC builds to latest NDK r29 doesn't change anything either. Last try: compiling LLVM for API level 30 (not 29), like LDC. |
|
That doesn't change anything either, giving up. |
|
Not just yet; trying a no-op LLVM FWIW, I've also glanced at a few files in https://github.com/termux/termux-packages/tree/master/packages/libllvm, and I couldn't spot any interesting patch or CMake build option for Termux' LLVM. |
|
The dummy |
|
Oh well, the object file is generated successfully at least AFAICT, I don't think that was the case earlier. But it doesn't continue to the linking stage, the stack corruption seems to happen quickly after the object-file emission. |
422512c to
d55a9ce
Compare
|
The crash for Lines 138 to 156 in 2e33c9c -fstack-protector-strong, or a segfault/sigbus happens without that switch.
|
|
I think I'm really out of ideas now. Still getting sigbus for Edit: Oh, linking via LDC also works fine without LDC crashing. So |
Another test wrt. #4383, incl. new LLVM Android builds without
-fstack-protector-strong.