setglobal ARCH = '"aarch64:ilp32'" setglobal MACHINE = '' setglobal NOP = '0' setglobal SCRIPT_NAME = 'elf' setglobal ELFSIZE = '32' setglobal OUTPUT_FORMAT = '"elf32-littleaarch64'" setglobal BIG_OUTPUT_FORMAT = '"elf32-bigaarch64'" setglobal LITTLE_OUTPUT_FORMAT = '"elf32-littleaarch64'" setglobal NO_REL_RELOCS = 'yes' setglobal TEMPLATE_NAME = 'elf32' setglobal EXTRA_EM_FILE = 'aarch64elf' setglobal GENERATE_SHLIB_SCRIPT = 'yes' setglobal MAXPAGESIZE = '"CONSTANT (MAXPAGESIZE)'" setglobal ENTRY = '_start' setglobal EMBEDDED = 'yes' setglobal SEPARATE_GOTPLT = '12' setglobal IREL_IN_PLT = '' setglobal TEXT_START_ADDR = '0x00400000' setglobal DATA_START_SYMBOLS = ''__data_start = . ;''; # AArch64 does not support .s* sections. setglobal NO_SMALL_DATA = 'yes' setglobal OTHER_BSS_SYMBOLS = ''__bss_start__ = .;'' setglobal OTHER_BSS_END_SYMBOLS = ''_bss_end__ = . ; __bss_end__ = . ;'' setglobal OTHER_END_SYMBOLS = ''__end__ = . ;'' setglobal OTHER_SECTIONS = ''.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'' setglobal ATTRS_SECTIONS = ''.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'' # This sets the stack to the top of the simulator memory (2^19 bytes). setglobal STACK_ADDR = '0x80000'