summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2005-01-19 22:40:20 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2005-01-19 22:40:20 +0000
commiteee9d7de7589b6f10fbe5635894911e82c20bd19 (patch)
tree9ea1a6e7fa817d7bfc6a9d31b64d0d5ef336e8d7
parent702b4b2bcc77a672a5f1d8d596e5b7a266c9c6f1 (diff)
Provide openbsd emulation for mips64el as we do for mips64.
ok miod@
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.am5
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.in5
-rw-r--r--gnu/usr.bin/binutils/ld/configure.tgt2
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/elf64ltsmip_obsd.sh6
4 files changed, 17 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile.am b/gnu/usr.bin/binutils/ld/Makefile.am
index 179653bc6eb..29cfe400b30 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.am
+++ b/gnu/usr.bin/binutils/ld/Makefile.am
@@ -387,6 +387,7 @@ ALL_64_EMULATIONS = \
eelf64btsmip.o \
eelf64btsmip_obsd.o \
eelf64ltsmip.o \
+ eelf64ltsmip_obsd.o \
eelf64hppa.o \
eelf64mmix.o \
emmo.o \
@@ -843,6 +844,10 @@ eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
$(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
+eelf64ltsmip_obsd.c: $(srcdir)/emulparams/elf64ltsmip_obsd.sh \
+ $(srcdir)/emulparams/elf32bmipn32.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf64ltsmip_obsd "$(tdir_elf64ltsmip_obsd)"
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
diff --git a/gnu/usr.bin/binutils/ld/Makefile.in b/gnu/usr.bin/binutils/ld/Makefile.in
index 01f8235b67b..7a80545d940 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.in
+++ b/gnu/usr.bin/binutils/ld/Makefile.in
@@ -502,6 +502,7 @@ ALL_64_EMULATIONS = \
eelf64btsmip.o \
eelf64btsmip_obsd.o \
eelf64ltsmip.o \
+ eelf64ltsmip_obsd.o \
eelf64hppa.o \
eelf64mmix.o \
emmo.o \
@@ -1569,6 +1570,10 @@ eelf64ltsmip.c: $(srcdir)/emulparams/elf64ltsmip.sh \
$(srcdir)/emulparams/elf64btsmip.sh $(srcdir)/emulparams/elf32bmipn32.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf64ltsmip "$(tdir_elf64ltsmip)"
+eelf64ltsmip_obsd.c: $(srcdir)/emulparams/elf64ltsmip_obsd.sh \
+ $(srcdir)/emulparams/elf32bmipn32.sh \
+ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} elf64ltsmip_obsd "$(tdir_elf64ltsmip_obsd)"
eelf_i386.c: $(srcdir)/emulparams/elf_i386.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf_i386 "$(tdir_elf_i386)"
diff --git a/gnu/usr.bin/binutils/ld/configure.tgt b/gnu/usr.bin/binutils/ld/configure.tgt
index 1767cc1c8f3..c8a620f7f52 100644
--- a/gnu/usr.bin/binutils/ld/configure.tgt
+++ b/gnu/usr.bin/binutils/ld/configure.tgt
@@ -429,7 +429,7 @@ mips*el-*-netbsd*) targ_emul=elf32lmip
mips*-*-netbsd*) targ_emul=elf32bmip
targ_extra_emuls="elf32lmip"
;;
-mips64*el-*-openbsd*) targ_emul=elf64ltsmip
+mips64*el-*-openbsd*) targ_emul=elf64ltsmip_obsd
targ_extra_emuls="elf32ltsmipn32 elf32btsmipn32 elf32ltsmip elf32btsmip elf64btsmip"
;;
mips64*-*-openbsd*) targ_emul=elf64btsmip_obsd
diff --git a/gnu/usr.bin/binutils/ld/emulparams/elf64ltsmip_obsd.sh b/gnu/usr.bin/binutils/ld/emulparams/elf64ltsmip_obsd.sh
new file mode 100644
index 00000000000..f2561ea766e
--- /dev/null
+++ b/gnu/usr.bin/binutils/ld/emulparams/elf64ltsmip_obsd.sh
@@ -0,0 +1,6 @@
+. ${srcdir}/emulparams/elf64ltsmip.sh
+MAXPAGESIZE=0x10000
+TEXT_START_ADDR="0x10000000"
+. ${srcdir}/emulparams/elf_obsd.sh
+# XXX causes GOT oflows
+NO_PAD_CDTOR=y