1ARCH=aarch64
2MACHINE=
3NOP=0
4
5SCRIPT_NAME=elf
6ELFSIZE=64
7OUTPUT_FORMAT="elf64-littleaarch64"
8BIG_OUTPUT_FORMAT="elf64-bigaarch64"
9LITTLE_OUTPUT_FORMAT="elf64-littleaarch64"
10NO_REL_RELOCS=yes
11
12TEMPLATE_NAME=elf32
13EXTRA_EM_FILE=aarch64elf
14
15GENERATE_SHLIB_SCRIPT=yes
16GENERATE_PIE_SCRIPT=yes
17
18MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
19COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
20SEPARATE_GOTPLT=24
21IREL_IN_PLT=
22
23TEXT_START_ADDR=0x400000
24
25DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
26
27# AArch64 does not support .s* sections.
28NO_SMALL_DATA=yes
29
30OTHER_BSS_SYMBOLS='__bss_start__ = .;'
31OTHER_BSS_END_SYMBOLS='_bss_end__ = . ; __bss_end__ = . ;'
32OTHER_END_SYMBOLS='__end__ = . ;'
33
34OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
35ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
36# Ensure each PLT entry is aligned to a cache line.
37PLT=".plt          ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
38
39# Linux modifies the default library search path to first include
40# a 64-bit specific directory.
41case "$target" in
42  aarch64*-linux*)
43    case "$EMULATION_NAME" in
44      aarch64linux*) LIBPATH_SUFFIX=64 ;;
45    esac
46    ;;
47esac
48
49ELF_INTERPRETER_NAME=\"/lib/ld-linux-aarch64.so.1\"
50