1source_sh ${srcdir}/emulparams/plt_unwind.sh
2source_sh ${srcdir}/emulparams/extern_protected_data.sh
3source_sh ${srcdir}/emulparams/dynamic_undefined_weak.sh
4source_sh ${srcdir}/emulparams/call_nop.sh
5SCRIPT_NAME=elf
6ELFSIZE=64
7OUTPUT_FORMAT="elf64-k1om"
8NO_REL_RELOCS=yes
9TEXT_START_ADDR=0x400000
10MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
11COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
12ARCH="k1om"
13MACHINE=
14COMPILE_IN=yes
15TEMPLATE_NAME=elf
16EXTRA_EM_FILE="elf-x86"
17GENERATE_SHLIB_SCRIPT=yes
18GENERATE_PIE_SCRIPT=yes
19NO_SMALL_DATA=yes
20LARGE_SECTIONS=yes
21LARGE_BSS_AFTER_BSS=
22SEPARATE_GOTPLT="SIZEOF (.got.plt) >= 24 ? 24 : 0"
23IREL_IN_PLT=
24
25if [ "x${host}" = "x${target}" ]; then
26  case " $EMULATION_LIBPATH " in
27    *" ${EMULATION_NAME} "*)
28      NATIVE=yes
29  esac
30fi
31
32# Linux modifies the default library search path to first include
33# a 64-bit specific directory.
34case "$target" in
35  *k1om*-linux*)
36    case "$EMULATION_NAME" in
37      *k1om*) LIBPATH_SUFFIX=64 ;;
38    esac
39    ;;
40esac
41