NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.57k stars 486 forks source link

Need help for cross-compliling libc.so.6 #545

Open JankleDev opened 8 months ago

JankleDev commented 8 months ago

Can we use this to compile libc.so.6 from x86_64-linux-gnu to x86_64-linux-android?

adam-azarchs commented 4 months ago

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.