arm, objdump: print obsolote warning when 26-bit set in instructions
[binutils-gdb.git] / ld / emulparams / elf64loongarch-defs.sh
bloba8147bf71d7a5bd2bfcd9272e330901f5d5fe5c6
1 # This is an ELF platform.
2 SCRIPT_NAME=elf
3 ARCH=loongarch
4 NO_REL_RELOCS=yes
6 TEMPLATE_NAME=elf
7 EXTRA_EM_FILE=loongarchelf
9 ELFSIZE=64
11 if test `echo "$host" | sed -e s/64//` = `echo "$target" | sed -e s/64//`; then
12 case " $EMULATION_LIBPATH " in
13 *" ${EMULATION_NAME} "*)
14 NATIVE=yes
16 esac
19 # Enable shared library support for everything except an embedded elf target.
20 case "$target" in
21 loongarch*-elf)
24 GENERATE_SHLIB_SCRIPT=yes
25 GENERATE_PIE_SCRIPT=yes
27 esac
29 # In all cases, the number is big-endian.
30 # LoongArch nop is 'andi $r0,$r0,0'.
31 NOP=0x00004003
33 TEXT_START_ADDR=0x120000000
34 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
35 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
37 # Put .got before .data
38 DATA_GOT=" "
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}}}"