OS: Ubuntu 18.04 (docker)
Host arch: x86_64
I am unable to recompile the binary /bin/ls (from Ubuntu18.04 ARM64), here's the command I used:
./etharden -m /mnt/aarch64/ls /tmp/hello
Here's the error I get:
Parsing ELF file...
etharden: analysis/usedef.cpp:1949: void UseDef::fillMovabs(UDState*, AssemblyPtr): Assertion `mode == AssemblyOperands::MODE_IMM_REG' failed.
Aborted (core dumped)
is there a special flag I should provide to support cross-recompilation?
Also: I tried to build egalito directly on ubuntu18.04 ARM64 but compilation fails because of a makefile error while building capstone:
make -C dep
make[1]: Entering directory '/home/luca/egalito/dep'
make -C rtld
make[2]: Entering directory '/home/luca/egalito/dep/rtld'
make[2]: Leaving directory '/home/luca/egalito/dep/rtld'
make -C ifunc
make[2]: Entering directory '/home/luca/egalito/dep/ifunc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/luca/egalito/dep/ifunc'
Makefile:43: recipe for target 'capstone' failed
make[1]: *** [capstone] Error 1
make[1]: Leaving directory '/home/luca/egalito/dep'
Makefile:30: recipe for target 'dep/built' failed
make: *** [dep/built] Error 2