I have used shc on an x86-64 machine to convert a bash script to executable binary. This runs fine on my machine, but I am making this with the intention of pushing it to a aarch64 machine. After copying the binary to the aarch64 machine I get this error:
cannot execute binary file: Exec format error
This appears to be caused by the binary file not being formatted to run on this OS. Does anyone know of a tool that will give me a binary file that can be executed on aarch64 (it doesn't appear that shc can do this).
EDIT: the file command prints this out (on the aarch machine):
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=f6f72e60c9ae8c2fd3abe5aa47f9ba6be7000be6, stripped
Just confirming that the file is for x86-46