I'm using buildroot. Compilation works fine, but binaries on target system says "Illegal instruction"
I have used strace:
execve("/opt/busybox", ["/opt/busybox"], [/* 8 vars */]) = 0 brk(0)
= 0 --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLTRP, si_addr=0xa3f20} --- +++ killed by SIGILL +++ Illegal instruction
and then IDA.
The reason is SVC instruction (si_addr pointed to it in all binaries i tried)
What should i do to prevent using this instruction by GCC ?