patchelf
patchelf copied to clipboard
Need help for cross-compliling libc.so.6
Can we use this to compile libc.so.6 from x86_64-linux-gnu to x86_64-linux-android?
This tool is for patching ELF binaries. It can maybe help make something built for one GNU-linux operating distribution to work on another, but android is a very different platform from GNU-linux. It's a lot closer to, say, Alpine (which doesn't use glibc by default, but at least can use it), but even then it's quite different. For example, a lot of common linux syscalls (like fork, for example) are not supported on android.