From da7a27102fccbc55e5a64878ffe448ee5a019128 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 25 Jul 2009 15:08:26 +0000 Subject: Add missing files. --- ld/emulparams/elf_l1om.sh | 68 ++++++++++++++++++++++++++++++++++++++++++ ld/emulparams/elf_l1om_fbsd.sh | 3 ++ 2 files changed, 71 insertions(+) create mode 100644 ld/emulparams/elf_l1om.sh create mode 100644 ld/emulparams/elf_l1om_fbsd.sh (limited to 'ld/emulparams') diff --git a/ld/emulparams/elf_l1om.sh b/ld/emulparams/elf_l1om.sh new file mode 100644 index 0000000..19eea97 --- /dev/null +++ b/ld/emulparams/elf_l1om.sh @@ -0,0 +1,68 @@ +SCRIPT_NAME=elf +ELFSIZE=64 +OUTPUT_FORMAT="elf64-l1om" +NO_REL_RELOCS=yes +TEXT_START_ADDR=0x400000 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" +ARCH="l1om" +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 + l1om*-linux*) + case "$EMULATION_NAME" in + *l1om*) LIBPATH_SUFFIX=64 ;; + esac + ;; +esac +SCRIPT_NAME=elf +ELFSIZE=64 +OUTPUT_FORMAT="elf64-l1om" +NO_REL_RELOCS=yes +TEXT_START_ADDR=0x400000 +MAXPAGESIZE="CONSTANT (MAXPAGESIZE)" +COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)" +ARCH="l1om" +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 + l1om*-linux*) + case "$EMULATION_NAME" in + *l1om*) LIBPATH_SUFFIX=64 ;; + esac + ;; +esac diff --git a/ld/emulparams/elf_l1om_fbsd.sh b/ld/emulparams/elf_l1om_fbsd.sh new file mode 100644 index 0000000..a90f81e --- /dev/null +++ b/ld/emulparams/elf_l1om_fbsd.sh @@ -0,0 +1,3 @@ +. ${srcdir}/emulparams/elf_l1om.sh +. ${srcdir}/emulparams/elf_fbsd.sh +OUTPUT_FORMAT="elf64-l1om-freebsd" -- cgit v1.1