I have chrooted debian in android marshmallow (snapdragon 650 [64bit]).I installed iceweasel in chrooted debian. But it showed this error :: (firefox:16210): Gdk-WARNING **: shmget failed: error 38 (Function not implemented)   Segmentation faultSo, I compiled libandroid-shmem.so from this repo using android-ndkand copied from armv8-a folder to /lib directory of chrooted debian. It then asked for liblog.so. iceweasel: error while loading shared libraries: liblog.so: cannot open shared object file: No such file or directorySo I copied liblog.so from android-ndk to chrooted debian /lib directory. Now when I run env LD_PRELOAD=/lib/libandroid-shmem.so iceweasel . It displays this error :iceweasel: error while loading shared libraries: /usr/lib/aarch64-linux-gnu/libc.so: invalid ELF headerHere are some details :: file /lib/libandroid-shmem.so/lib/libandroid-shmem.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=5ad4582c76effbe27a6688369ad979fea5dfac2a, strippedcat /usr/lib/aarch64-linux-gnu/libc.so/* GNU ld script   Use the shared library, but some functions are only in   the static library, so try that secondarily.  */OUTPUT_FORMAT(elf64-littleaarch64)GROUP ( /lib/aarch64-linux-gnu/libc.so.6 /usr/lib/aarch64-linux-gnu/libc_nonshared.a  AS_NEEDED ( /lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 ) )
libandroid-shmem showing invalid ELF header in chrooted linux
firefox;libraries;chroot;arm;elf