2 ms·
I don't know what you mean by an "Android ARM64 binary". If you make an ELF file containing ARM64 machine code, it doesn't matter to Linux whether you meant for
by mort96 8mo ago
I don't know what you mean by an "Android ARM64 binary". If you make an ELF file containing ARM64 machine code, it doesn't matter to Linux whether you meant for it to run on Linux in an Android system, on Linux in a desktop GNU system, or on Linux in some environment with without much of a userspace at all (such as a stripped down initramfs environment).
If you mean something like an Android app, the answer is that there's a ton of system stuff that the app depends on, it interacts with more than just the kernel.
- westurner 8mo ago. CC= clang CXX=clang++ $CC hello.c -o hello_android_c $CXX hello.cpp -o hello_android_cpp -static-libstdc++ $CXX hello_asm.cpp -o hello_android_cpp_asm_syscalls_only -ffreestanding -nostdlib -fuse-ld=lld find -name hello_android -exec readelf -l {} \; But go binaries don't require (bionic) libc unless you compile with CGO_ENABLED=1