i need to compile and run a 32bit binary on rp4 running linux 64bit. I am using gcc compiler and following this https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html i am trying to understand how to do it.
I am realized that the -m32 flag is not supported on ARMv8 linux machines. Looking at https://gcc.gnu.org/onlinedocs/gcc/AArc ... ions.html i didn’t find anything interesting.
In according to https://linux.die.net/man/1/arm-linux-gnu-gcc the AArch64 gcc options are listed here:
So my question is: is it possible to compile and run a 32-bit binary on a 64-bit linux Armv8 machine ? and is so, how ?
Code: Select all
Machine Dependent Options AArch64 Options -mbig-endian -mlittle-endian -mgeneral-regs-only -mcmodel=tiny -mcmodel=small -mcmodel=large -mstrict-align -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer -mtls-dialect=desc -mtls-dialect=traditional -march=name -mcpu=name -mtune=name