Собрать toolchain для ARM архитектуры
Общий смысл - бинарники должны успешно собираться gcc с опциями
-mabi=ilp32 -mbig-endian -march=armv8-a
Откомпилированные данным тулчейном бинарники должны иметь примерно такой заголовок. Важные поля : ELF32+BigEndian+AArch64
# readelf -h testprog
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: AArch64
Version: 0x1
Entry point address: 0x479550
Start of program headers: 52 (bytes into file)
Start of section headers: 2720616 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 11
Size of section headers: 40 (bytes)
Number of section headers: 29
Section header string table index: 28