| 1 | ARCH=aarch64 |
| 2 | MACHINE= |
| 3 | NOP=0 |
| 4 | |
| 5 | SCRIPT_NAME=elf |
| 6 | OUTPUT_FORMAT="elf64-littleaarch64" |
| 7 | BIG_OUTPUT_FORMAT="elf64-bigaarch64" |
| 8 | LITTLE_OUTPUT_FORMAT="elf64-littleaarch64" |
| 9 | NO_REL_RELOCS=yes |
| 10 | |
| 11 | TEMPLATE_NAME=elf32 |
| 12 | EXTRA_EM_FILE=aarch64elf |
| 13 | |
| 14 | GENERATE_SHLIB_SCRIPT=yes |
| 15 | GENERATE_PIE_SCRIPT=yes |
| 16 | |
| 17 | MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" |
| 18 | COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" |
| 19 | SEPARATE_GOTPLT=24 |
| 20 | IREL_IN_PLT= |
| 21 | |
| 22 | TEXT_START_ADDR=0x400000 |
| 23 | |
| 24 | DATA_START_SYMBOLS='PROVIDE (__data_start = .);'; |
| 25 | |
| 26 | # AArch64 does not support .s* sections. |
| 27 | NO_SMALL_DATA=yes |
| 28 | |
| 29 | OTHER_BSS_SYMBOLS='__bss_start__ = .;' |
| 30 | OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;' |
| 31 | OTHER_END_SYMBOLS='__end__ = . ;' |
| 32 | |
| 33 | OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }' |
| 34 | ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }' |
| 35 | # Ensure each PLT entry is aligned to a cache line. |
| 36 | PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }" |