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

[Enhancement] Ability to run staticx on binaries from unsupported platforms #280

Open
cryptrr opened this issue Jul 2, 2024 · 1 comment

Comments

@cryptrr
Copy link

cryptrr commented Jul 2, 2024

Hi there,
Can you help me out of this predicament here.

I want to use staticx to link termux binaries which are made with Android NDK. The issue is, staticx is not possible to get installed inside termux because of LDC and lld issues on the Android platform.

gcc -o scons_build/debug/bootloader/bootloader -Wl,--fatal-warnings -static scons_build/debug/bootloader/error.o scons_build/debug/bootloader/elfutil.o scons_build/debug/bootloader/extract.o scons_build/debug/bootloader/main.o scons_build/debug/bootloader/mmap.o scons_build/debug/bootloader/util.o -Lscons_build/debug/lib -ltar -lxz
ld.lld: error: unable to find library -lc

Is there any way we can make it possible to run staticx from a supported platform and collect the necessary binaries and dependencies remotely from an unsupported platform?

Or is there an easier approach for this?

Thank you.

@JonathonReinhart
Copy link
Owner

To be honest, running staticx to build the binary is the easy half of the battle. Executing the resulting binary and ensuring it only uses the bundled libraries is the difficult part. I barely have the bandwidth to keep staticx working on glibc - adding support for Android NDK is not going to happen without a community contribution.

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

2 participants