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