aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-07-25 15:08:26 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-07-25 15:08:26 +0000
commitda7a27102fccbc55e5a64878ffe448ee5a019128 (patch)
tree703105f66c6ab8cc450f0fcd8a1560a481ffce66 /ld
parent8a9036a406bc608a880e90462ac24b5fbfa4a30f (diff)
downloadgdb-da7a27102fccbc55e5a64878ffe448ee5a019128.zip
gdb-da7a27102fccbc55e5a64878ffe448ee5a019128.tar.gz
gdb-da7a27102fccbc55e5a64878ffe448ee5a019128.tar.bz2
Add missing files.
Diffstat (limited to 'ld')
-rw-r--r--ld/emulparams/elf_l1om.sh68
-rw-r--r--ld/emulparams/elf_l1om_fbsd.sh3
2 files changed, 71 insertions, 0 deletions
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"