* mips.sc-sh: Added variables which may be overridden by a

specific emulation.
	* mipsidt.sh: New file; emulation for IDT MIPS board.
	* Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
	(em_mipsidt.c): New target.  Uses mipsidt.sh and mips.sc-sh.
	* config/mips-idt.mt: New file; sets EMUL to mipsidt.
	* configure.in (mips-idt-ecoff): New target; uses mips-idt.
This commit is contained in:
Ian Lance Taylor 1993-03-04 20:49:26 +00:00
parent bf44929331
commit ce7d4b0d57
6 changed files with 37 additions and 7 deletions

View File

@ -108,6 +108,7 @@ m88kbcs.sh
mips.sc-sh
mipsbig.sh
mipsbsd.sh
mipsidt.sh
mipslit.sh
mri.c
mri.h
@ -161,7 +162,16 @@ fi
#
#
# $Log$
# Revision 1.52 1993/02/28 14:42:15 raeburn
# Revision 1.53 1993/03/04 20:49:05 ian
# * mips.sc-sh: Added variables which may be overridden by a
# specific emulation.
# * mipsidt.sh: New file; emulation for IDT MIPS board.
# * Makefile.in (ALL_EMULATIONS): Added em_mipsidt.o.
# (em_mipsidt.c): New target. Uses mipsidt.sh and mips.sc-sh.
# * config/mips-idt.mt: New file; sets EMUL to mipsidt.
# * configure.in (mips-idt-ecoff): New target; uses mips-idt.
#
# Revision 1.52 1993/02/28 14:42:15 raeburn
# mips-bsd and 386bsd support
#
# Revision 1.51 1993/02/26 18:53:13 dje

View File

@ -120,7 +120,7 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
em_h8300hms.o em_ebmon29k.o em_sun4.o em_gld960.o \
em_m68kcoff.o em_h8300xray.o em_st2000.o em_sa29200.o \
em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
em_mipsbig.o em_mipsbsd.o
em_mipsbig.o em_mipsbsd.o em_mipsidt.o
EMULATION_OFILES=${ALL_EMULATIONS}
#EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
@ -268,6 +268,9 @@ em_mipsbig.c: $(srcdir)/mipsbig.sh \
em_mipsbsd.c: $(srcdir)/mipsbsd.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} mipsbsd.sh
em_mipsidt.c: $(srcdir)/mipsidt.sh \
$(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} mipsidt.sh
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)

View File

@ -43,6 +43,7 @@ m68kv.mt
m88k-bcs.mt
mipsbsd.mt
mips-big.mt
mips-idt.mt
mips-lit.mt
news.mt
ose68.mt

1
ld/config/mips-idt.mt Normal file
View File

@ -0,0 +1 @@
EMUL=mipsidt

View File

@ -1,22 +1,27 @@
# Linker script for MIPS. This works on a DECstation running Ultrix,
# and may work on other platforms as well.
# Linker script for MIPS systems.
# Ian Lance Taylor <ian@cygnus.com>.
# These variables may be overridden by the emulation file. The
# defaults are appropriate for a DECstation running Ultrix.
test -z "$ENTRY" && ENTRY=__start
test -z "$TEXT_START_ADDR" && TEXT_START_ADDR="0x400000 + SIZEOF_HEADERS"
test -z "$DATA_ADDR" && DATA_ADDR=0x10000000
test -z "$BSS_VAR" && BSS_VAR=
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
${LIB_SEARCH_DIRS}
ENTRY(__start)
ENTRY(${ENTRY})
SECTIONS
{
.text ${RELOCATING+ 0x400000 + SIZEOF_HEADERS} : {
.text ${RELOCATING+ ${TEXT_START_ADDR}} : {
*(.init)
${RELOCATING+ eprol = .};
*(.text)
*(.fini)
${RELOCATING+ etext = .};
}
.rdata ${RELOCATING+ 0x10000000} : {
.rdata ${RELOCATING+ ${DATA_ADDR}} : {
*(.rdata)
}
.data ${RELOCATING+ .} : {
@ -33,6 +38,7 @@ SECTIONS
*(.sdata)
}
${RELOCATING+ edata = .;}
${BSS_VAR}
.sbss ${RELOCATING+ .} : {
*(.sbss)
*(.scommon)

9
ld/mipsidt.sh Normal file
View File

@ -0,0 +1,9 @@
EMULATION_NAME=mipsidt
SCRIPT_NAME=mips
OUTPUT_FORMAT="ecoff-bigmips"
PAGE_SIZE=0x1000000
ARCH=mips
ENTRY=start
TEXT_START_ADDR=0xa0012000
DATA_ADDR=.
BSS_VAR="_fbss = .;"