1 # This is an ELF platform.
7 EXTRA_EM_FILE
=loongarchelf
11 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
12 case " $EMULATION_LIBPATH " in
13 *" ${EMULATION_NAME} "*)
19 # Enable shared library support for everything except an embedded elf target.
24 GENERATE_SHLIB_SCRIPT
=yes
25 GENERATE_PIE_SCRIPT
=yes
29 # In all cases, the number is big-endian.
30 # LoongArch nop is 'andi $r0,$r0,0'.
33 TEXT_START_ADDR
=0x120000000
34 MAXPAGESIZE
="CONSTANT (MAXPAGESIZE)"
35 COMMONPAGESIZE
="CONSTANT (COMMONPAGESIZE)"
37 # Put .got before .data
39 # First two entries for PLT resolver _dl_runtime_resolve and link map.
40 SEPARATE_GOTPLT
="SIZEOF (.got.plt) >= 16 ? 16 : 0"
41 INITIAL_READONLY_SECTIONS
=".interp : { *(.interp) } ${CREATE_PIE-${INITIAL_READONLY_SECTIONS}}"
42 INITIAL_READONLY_SECTIONS
="${RELOCATING+${CREATE_SHLIB-${INITIAL_READONLY_SECTIONS}}}"