Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4 | pmbaty | 1 | ARCH=aarch64 |
2 | MACHINE= |
||
3 | NOP=0x1f2003d5 |
||
4 | |||
5 | SCRIPT_NAME=elf |
||
6 | ELFSIZE=64 |
||
7 | OUTPUT_FORMAT="elf64-littleaarch64" |
||
8 | BIG_OUTPUT_FORMAT="elf64-bigaarch64" |
||
9 | LITTLE_OUTPUT_FORMAT="elf64-littleaarch64" |
||
10 | NO_REL_RELOCS=yes |
||
11 | |||
12 | TEMPLATE_NAME=elf |
||
13 | EXTRA_EM_FILE=nto |
||
14 | |||
15 | GENERATE_SHLIB_SCRIPT=yes |
||
16 | GENERATE_PIE_SCRIPT=yes |
||
17 | |||
18 | MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" |
||
19 | COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" |
||
20 | SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0" |
||
21 | IREL_IN_PLT= |
||
22 | |||
23 | TEXT_START_ADDR=0x400000 |
||
24 | |||
25 | TEXT_START_SYMBOLS='PROVIDE (_btext = .);' |
||
26 | DATA_START_SYMBOLS='PROVIDE (__data_start = .);'; |
||
27 | |||
28 | # AArch64 does not support .s* sections. |
||
29 | NO_SMALL_DATA=yes |
||
30 | |||
31 | OTHER_BSS_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__bss_start__ = .${CREATE_SHLIB+)};" |
||
32 | OTHER_BSS_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}_bss_end__ = .${CREATE_SHLIB+)}; ${CREATE_SHLIB+PROVIDE (}__bss_end__ = .${CREATE_SHLIB+)};" |
||
33 | OTHER_END_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__end__ = .${CREATE_SHLIB+)};" |
||
34 | |||
35 | OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }' |
||
36 | ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }' |
||
37 | # Ensure each PLT entry is aligned to a cache line. |
||
38 | PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${RELOCATING+${IREL_IN_PLT+ *(.iplt)}} }" |
||
39 | |||
40 | |||
41 | ELF_INTERPRETER_NAME=\"/usr/lib/ldqnx-64.so.2\" |