diff options
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/elf_k1om.sh | 35 | ||||
-rw-r--r-- | ld/emulparams/elf_k1om_fbsd.sh | 3 |
2 files changed, 38 insertions, 0 deletions
diff --git a/ld/emulparams/elf_k1om.sh b/ld/emulparams/elf_k1om.sh new file mode 100644 index 0000000..ad4b955 --- /dev/null +++ b/ld/emulparams/elf_k1om.sh @@ -0,0 +1,35 @@ +. ${srcdir}/emulparams/plt_unwind.sh +SCRIPT_NAME=elf +ELFSIZE=64 +OUTPUT_FORMAT="elf64-k1om" +NO_REL_RELOCS=yes +TEXT_START_ADDR=0x400000 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" +ARCH="k1om" +MACHINE= +COMPILE_IN=yes +NOP=0x90909090 +TEMPLATE_NAME=elf32 +GENERATE_SHLIB_SCRIPT=yes +GENERATE_PIE_SCRIPT=yes +NO_SMALL_DATA=yes +LARGE_SECTIONS=yes +SEPARATE_GOTPLT=24 + +if [ "x${host}" = "x${target}" ]; then + case " $EMULATION_LIBPATH " in + *" ${EMULATION_NAME} "*) + NATIVE=yes + esac +fi + +# Linux modifies the default library search path to first include +# a 64-bit specific directory. +case "$target" in + *k1om*-linux*) + case "$EMULATION_NAME" in + *k1om*) LIBPATH_SUFFIX=64 ;; + esac + ;; +esac diff --git a/ld/emulparams/elf_k1om_fbsd.sh b/ld/emulparams/elf_k1om_fbsd.sh new file mode 100644 index 0000000..98f8033 --- /dev/null +++ b/ld/emulparams/elf_k1om_fbsd.sh @@ -0,0 +1,3 @@ +. ${srcdir}/emulparams/elf_k1om.sh +. ${srcdir}/emulparams/elf_fbsd.sh +OUTPUT_FORMAT="elf64-k1om-freebsd" |