Skip to content
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

Still have underalignment in TLS segment: "alignment is 64 (skew 56)" #34

Open
T-3B opened this issue Mar 13, 2025 · 0 comments
Open

Still have underalignment in TLS segment: "alignment is 64 (skew 56)" #34

T-3B opened this issue Mar 13, 2025 · 0 comments

Comments

@T-3B
Copy link

T-3B commented Mar 13, 2025

After executing termux-elf-cleaner, I still have an issue of alignment.

Steps to repoduce:

$ wget https://www.ijg.org/files/jpegsrc.v9f.tar.gz  # source code of IJG jpeg tools: https://www.ijg.org
$ # extract and cd into it
$ ./configure --disable-shared
$ make jpegtran  # this is used to create static lib
$ clang -mtune=generic -flto -O3 -static jpegtran.c rdswitch.c cdjpeg.c transupp.c .libs/libjpeg.a -o jpegtran
$ ./jpegtran -help
error: "./jpegtran": executable's TLS segment is underaligned: alignment is 64 (skew 56), needs to be at least 64 for ARM64 Bionic
Aborted
$ clang --version
clang version 19.1.7

I don't really what to do (I have ndk-multilib and the static one packages).
Thank you for any answer and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant