mips-bsd and 386bsd support

This commit is contained in:
Ken Raeburn 1993-02-28 14:46:25 +00:00
parent 28edf847ec
commit e637dcf08b
10 changed files with 82 additions and 3 deletions

View File

@ -36,6 +36,7 @@ TODO
a29k.sc-sh
a29k.sh
aout.sc-sh
aout-mipsbsd.sc-sh
cdtest-foo.cc
cdtest-foo.h
cdtest-func.cc
@ -61,6 +62,7 @@ h8300xray.em
h8300xray.sc-sh
h8300xray.sh
i386aout.sh
i386bsd.sh
i386coff.sc-sh
i386coff.sh
i960.sc-sh
@ -105,6 +107,7 @@ m88kbcs.sc-sh
m88kbcs.sh
mips.sc-sh
mipsbig.sh
mipsbsd.sh
mipslit.sh
mri.c
mri.h
@ -158,7 +161,10 @@ fi
#
#
# $Log$
# Revision 1.51 1993/02/26 18:53:13 dje
# 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
# Added initial sparc-v9 support.
#
# Revision 1.50 1993/02/13 10:15:14 zoo

View File

@ -1,5 +1,13 @@
Sat Feb 27 00:00:14 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
* aout-mipsbsd.sc-sh, mipsbsd.sh: New files from Ralph Campbell,
ralphc@pyramid.com.
* i386bsd.sh, config/i386bsd.mt: New files.
* configure.in, Makefile.in: Added support for mipsbsd and 386bsd.
Thu Feb 25 15:33:10 1993 Per Bothner (bothner@rtl.cygnus.com)
* mri.c: Add extern declaration of strdup.
* ldsym.c (KEEP macro): Add spaces around '=' for the
sake of old (e.g. PCC) compilers.

View File

@ -119,7 +119,8 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
em_m88kbcs.o em_a29k.o em_news.o em_hp300bsd.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_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
em_mipsbig.o em_mipsbsd.o
EMULATION_OFILES=${ALL_EMULATIONS}
#EMULATION_OFILES=em_${EMUL}.o ${OTHER_EMULATIONS}
@ -258,6 +259,15 @@ em_i386coff.c: $(srcdir)/i386coff.sh \
em_mipslit.c: $(srcdir)/mipslit.sh \
$(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} mipslit.sh
em_i386bsd.c: $(srcdir)/i386bsd.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} i386bsd.sh
em_mipsbig.c: $(srcdir)/mipsbig.sh \
$(srcdir)/generic.em $(srcdir)/mips.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} mipsbig.sh
em_mipsbsd.c: $(srcdir)/mipsbsd.sh \
$(srcdir)/generic.em $(srcdir)/aout.sc-sh ${GEN_DEPENDS}
${GENSCRIPTS} mipsbsd.sh
$(LD_PROG): $(OFILES) $(BFDLIB) $(LIBIBERTY)
$(CC) $(CFLAGS) $(INCLUDES) $(HDEFINES) $(TDEFINES) $(CDEFINES) $(LDFLAGS) -o $(LD_PROG) $(OFILES) $(BFDLIB) $(LIBIBERTY) $(LOADLIBES)

28
ld/aout-mipsbsd.sc-sh Normal file
View File

@ -0,0 +1,28 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
${RELOCATING+${LIB_SEARCH_DIRS}}
${RELOCATING+__DYNAMIC = 0;}
SECTIONS
{
.text ${RELOCATING+${TEXT_START_ADDR}}:
{
CREATE_OBJECT_SYMBOLS
*(.text)
${RELOCATING+etext = ${DATA_ALIGNMENT};}
}
.data ${RELOCATING+${DATA_ALIGNMENT}} :
{
*(.data)
${CONSTRUCTING+CONSTRUCTORS}
${RELOCATING+edata = .;}
}
.bss ${RELOCATING+SIZEOF(.data) + ADDR(.data)} :
{
*(.bss)
*(COMMON)
${RELOCATING+end = . };
}
}
EOF

View File

@ -32,6 +32,7 @@ go32.mt
hp300.mh
hp300bsd.mt
i386-aout.mt
i386-bsd.mt
i386-coff.mt
i386v.mt
i960.mt
@ -40,6 +41,7 @@ m68k-coff.mt
m68k.mt
m68kv.mt
m88k-bcs.mt
mipsbsd.mt
mips-big.mt
mips-lit.mt
news.mt

1
ld/config/i386-bsd.mt Normal file
View File

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

1
ld/config/mipsbsd.mt Normal file
View File

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

View File

@ -38,6 +38,10 @@ case "${target}" in
;;
sparc*-*-aout) my_target=sun4
;;
# start-sanitize-v9
sparc64*) my_target=sun4
;;
# end-sanitize-v9
i960-wrs-vxworks*) my_target=i960
;;
i960-intel-nindy) my_target=i960
@ -58,12 +62,14 @@ case "${target}" in
;;
*-tandem-none) my_target=st2000 # FIXME needs better name
;;
i386-go32-*) my_target=go32
i386-*-go32) my_target=go32
;;
i386-*-sco*) my_target=i386-coff
;;
i386-*-coff) my_target=i386-coff
;;
i[34]86-*-bsd) my_target=i386-bsd
;;
i386-*-aout) my_target=i386-aout
;;
i386-*-sysv*) my_target=i386-coff
@ -93,6 +99,10 @@ case "${target}" in
;;
mips-dec-ultrix*) my_target=mips-lit
;;
mips-sgi-irix*) my_target=mips-big
;;
mips-dec-bsd*) my_target=mipsbsd
;;
z8k-*sim) my_target=z8ksim
;;
*-*-aout) my_target=${target_cpu}-${target_vendor}

7
ld/i386bsd.sh Normal file
View File

@ -0,0 +1,7 @@
EMULATION_NAME=i386bsd
SCRIPT_NAME=aout
OUTPUT_FORMAT="a.out-i386-bsd"
PAGE_SIZE=0x1000
TEXT_START_ADDR=0
NONPAGED_TEXT_START_ADDR=0x1000
ARCH=i386

6
ld/mipsbsd.sh Normal file
View File

@ -0,0 +1,6 @@
EMULATION_NAME=mipsbsd
SCRIPT_NAME=aout-mipsbsd
OUTPUT_FORMAT="aout-mips-little"
TEXT_START_ADDR=0x1020
PAGE_SIZE=4096
ARCH=mips