-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Clang: Executable's TLS segment is underaligned #8273
Comments
Please provide the full output of I can reproduce it on aarch64, and also when cross-compiling with ndk r23, so we should open an issue in the android/ndk repo as well |
Oh my bad I didn't knew it was a command, heres the output
And yes I was cross-compiling, thanks and I'll give them a bugreport too :) |
Cross-compiling with the ndk and testing on arm, or compiling on arm, gives the same error. This could be, or probably is, a limitation of the static libc used, as @xeffyr discussed here |
static compilation for Android api level < 29 (api>=29 should works, the termux default api level is 24) Way 1
Way 2
|
Yeah it was weird that I also compiles for 32bit whereas most phones this day running on 64bit at this Android 12. Though I need it for older Android versions to work too down to Android Lollipop. Anyway thanks for such a fast response, cheers 🥂 |
Im not in using the way 1 but so I ended up using way 2 and it works! Thanks and now Ill close this issue, cheers 🥂 |
Adding |
Well, I dont have that issue now. Glad it worked for you that way. |
Unfortunately I am on Android 11 (api level 30) and static binaries don't work immediately (I got alignement 8 instead of 64 for ARM64). I used your python script and now they work like a charm, thanks! |
Problem description
I've been using clang for quite a while now and using dynamic binaries, and now as I've tried compiling using -static flag it throws me this error on binary execution
What steps will reproduce the bug?
Compile binaries statically and run on an Android 12 device.
What is the expected behavior?
No response
System information
termux-info:
The text was updated successfully, but these errors were encountered: