summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-13 21:08:08 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1997-04-13 21:08:08 +0000
commit7b96f320b0e975487768b954efccc69ee93a6f68 (patch)
tree4637f30499e5a57d31043139d0f0f29f2ffdedbf /gnu/usr.bin/binutils
parent64e0b9312c9c3d9396ce8262b3fde6f372748802 (diff)
More consistent MIPS config
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/ld/Makefile.in12
-rw-r--r--gnu/usr.bin/binutils/ld/configure.tgt4
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/mipseb_obsd.sh27
-rw-r--r--gnu/usr.bin/binutils/ld/emulparams/mipsel_obsd.sh27
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elfobsd.em (renamed from gnu/usr.bin/binutils/ld/emultempl/elfarc.em)0
5 files changed, 64 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/ld/Makefile.in b/gnu/usr.bin/binutils/ld/Makefile.in
index bb1781003da..50e26548648 100644
--- a/gnu/usr.bin/binutils/ld/Makefile.in
+++ b/gnu/usr.bin/binutils/ld/Makefile.in
@@ -213,7 +213,6 @@ ALL_EMULATIONS = \
edelta68.o \
eebmon29k.o \
eelf32_sparc.o \
- eelf32arc.o \
eelf32b4300.o \
eelf32bmip.o \
eelf32ebmip.o \
@@ -263,6 +262,8 @@ ALL_EMULATIONS = \
em88kbcs.o \
emipsbig.o \
emipsbsd.o \
+ emipsel_obsd.o \
+ emipseb_obsd.o \
emipsidt.o \
emipsidtl.o \
emipslit.o \
@@ -397,9 +398,6 @@ eebmon29k.c: $(srcdir)/emulparams/ebmon29k.sh \
eelf32_sparc.c: $(srcdir)/emulparams/elf32_sparc.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32_sparc "$(tdir_elf32_sparc)"
-eelf32arc.c: $(srcdir)/emulparams/elf32arc.sh \
- $(srcdir)/emultempl/elfarc.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
- ${GENSCRIPTS} elf32arc "$(tdir_elf32arc)"
eelf32b4300.c: $(srcdir)/emulparams/elf32b4300.sh \
$(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS}
${GENSCRIPTS} elf32b4300 "$(tdir_elf32b4300)"
@@ -550,6 +548,12 @@ emipsbig.c: $(srcdir)/emulparams/mipsbig.sh \
emipsbsd.c: $(srcdir)/emulparams/mipsbsd.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mipsbsd.sc ${GEN_DEPENDS}
${GENSCRIPTS} mipsbsd
+emipsel_obsd.c: $(srcdir)/emulparams/mipsel_obsd.sh \
+ $(srcdir)/emultempl/elfobsd.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} mipsel_obsd "$(tdir_mipsel_obsd)"
+emipseb_obsd.c: $(srcdir)/emulparams/mipseb_obsd.sh \
+ $(srcdir)/emultempl/elfarc.em $(srcdir)/scripttempl/elfmips.sc ${GEN_DEPENDS}
+ ${GENSCRIPTS} mipseb_obsd "$(tdir_mipseb_obsd)"
emipsidt.c: $(srcdir)/emulparams/mipsidt.sh \
$(srcdir)/emultempl/mipsecoff.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
${GENSCRIPTS} mipsidt "$(tdir_mipsidt)"
diff --git a/gnu/usr.bin/binutils/ld/configure.tgt b/gnu/usr.bin/binutils/ld/configure.tgt
index 4260419a0c7..6f9f16570a6 100644
--- a/gnu/usr.bin/binutils/ld/configure.tgt
+++ b/gnu/usr.bin/binutils/ld/configure.tgt
@@ -126,8 +126,8 @@ mips*el-*-ecoff*) targ_emul=mipsidtl ;;
mips*-*-ecoff*) targ_emul=mipsidt ;;
mips*-dec-bsd*) targ_emul=mipsbsd ;;
mips*-dec-netbsd*) targ_emul=elf32lmip ;;
-mips*-*-openbsd*) targ_emul=elf32arc ;;
-mips-heurikon-openbsd*) targ_emul=elf32bmip ;;
+mips*el-*-openbsd*) targ_emul=mipsel_obsd ;;
+mips*-*-openbsd*) targ_emul=mipseb_obsd ;;
# mips*-dec-openbsd*) targ_emul=elf32lmip ;;
mips*-*-bsd*) targ_emul=mipsbig ;;
mips*vr4300el-*-elf*) targ_emul=elf32l4300 ;;
diff --git a/gnu/usr.bin/binutils/ld/emulparams/mipseb_obsd.sh b/gnu/usr.bin/binutils/ld/emulparams/mipseb_obsd.sh
new file mode 100644
index 00000000000..25cf9418cf3
--- /dev/null
+++ b/gnu/usr.bin/binutils/ld/emulparams/mipseb_obsd.sh
@@ -0,0 +1,27 @@
+SCRIPT_NAME=elfmips
+OUTPUT_FORMAT="elf32-bigmips"
+BIG_OUTPUT_FORMAT="elf32-bigmips"
+LITTLE_OUTPUT_FORMAT="elf32-littlemips"
+TEXT_START_ADDR=0x0400000
+DATA_ADDR=0x10000000
+MAXPAGESIZE=0x40000
+NONPAGED_TEXT_START_ADDR=0x0400000
+SHLIB_TEXT_START_ADDR=0x5ffe0000
+OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
+OTHER_GOT_SYMBOLS='
+ _gp = ALIGN(16) + 0x7ff0;
+'
+OTHER_READWRITE_SECTIONS='
+ .lit8 : { *(.lit8) }
+ .lit4 : { *(.lit4) }
+'
+TEXT_START_SYMBOLS='_ftext = . ;'
+DATA_START_SYMBOLS='_fdata = . ;'
+OTHER_BSS_SYMBOLS='_fbss = .;'
+OTHER_SECTIONS='
+ .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
+ .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+'
+ARCH=mips
+TEMPLATE_NAME=elfobsd
+GENERATE_SHLIB_SCRIPT=yes
diff --git a/gnu/usr.bin/binutils/ld/emulparams/mipsel_obsd.sh b/gnu/usr.bin/binutils/ld/emulparams/mipsel_obsd.sh
new file mode 100644
index 00000000000..a6ca46dfa4e
--- /dev/null
+++ b/gnu/usr.bin/binutils/ld/emulparams/mipsel_obsd.sh
@@ -0,0 +1,27 @@
+SCRIPT_NAME=elfmips
+OUTPUT_FORMAT="elf32-littlemips"
+BIG_OUTPUT_FORMAT="elf32-bigmips"
+LITTLE_OUTPUT_FORMAT="elf32-littlemips"
+TEXT_START_ADDR=0x0400000
+DATA_ADDR=0x10000000
+MAXPAGESIZE=0x40000
+NONPAGED_TEXT_START_ADDR=0x0400000
+SHLIB_TEXT_START_ADDR=0x5ffe0000
+OTHER_READONLY_SECTIONS='.reginfo : { *(.reginfo) }'
+OTHER_GOT_SYMBOLS='
+ _gp = ALIGN(16) + 0x7ff0;
+'
+OTHER_READWRITE_SECTIONS='
+ .lit8 : { *(.lit8) }
+ .lit4 : { *(.lit4) }
+'
+TEXT_START_SYMBOLS='_ftext = . ;'
+DATA_START_SYMBOLS='_fdata = . ;'
+OTHER_BSS_SYMBOLS='_fbss = .;'
+OTHER_SECTIONS='
+ .gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
+ .gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+'
+ARCH=mips
+TEMPLATE_NAME=elfobsd
+GENERATE_SHLIB_SCRIPT=yes
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elfarc.em b/gnu/usr.bin/binutils/ld/emultempl/elfobsd.em
index 0b052eb033c..0b052eb033c 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elfarc.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elfobsd.em