Sparc Lynx support

This commit is contained in:
Stan Shebs 1993-10-29 02:39:07 +00:00
parent 20f951757e
commit 7b95fe96ef
5 changed files with 31 additions and 6 deletions

View file

@ -1,3 +1,12 @@
Thu Oct 28 19:08:42 1993 Stan Shebs (shebs@rtl.cygnus.com)
* configure.in (sparc*-*-lynxos*): New target.
* Makefile.in: Add rule for em_sparclynx.c.
(ALL_EMULATIONS): Add Lynx emulations.
* config/sparc-lynx.mt: New file.
* emulparams/sparclynx.sh: New file.
* scripttempl/sparccoff.sc: New file.
Thu Oct 28 13:50:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* Makefile.in: Add dependency for $(EMULATION_OFILES).

View file

@ -172,6 +172,7 @@ ALL_EMULATIONS=em_lnk960.o em_sun3.o em_i386aout.o em_go32.o \
em_vanilla.o em_i386coff.o em_z8ksim.o em_mipslit.o em_i386bsd.o \
em_mipsbig.o em_mipsbsd.o em_mipsidt.o em_vax.o em_h8500.o \
em_hppaosf.o em_mipsidtl.o em_sh.o em_elf_i386.o em_alpha.o \
em_i386lynx.o em_m68klynx.o em_sparclynx.o \
$(OTHER_EMULATIONS)
# This is now set by configure.in.
@ -331,6 +332,9 @@ em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \
em_i386lynx.c: $(srcdir)/emulparams/i386lynx.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS}
${GENSCRIPTS} i386lynx
em_sparclynx.c: $(srcdir)/emulparams/sparclynx.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS}
${GENSCRIPTS} sparclynx
em_mipslit.c: $(srcdir)/emulparams/mipslit.sh \
$(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/mips.sc ${GEN_DEPENDS}
${GENSCRIPTS} mipslit

2
ld/config/sparc-lynx.mt Normal file
View file

@ -0,0 +1,2 @@
EMUL=sparclynx
OTHER_EMULATIONS=em_sparclynx.o

View file

@ -49,6 +49,7 @@ case "${targ}" in
# end-sanitize-v9
sparc*-*-aout) ld_target=sun4 ;;
sparc*-*-elf) ld_target=sun4sol2 ;;
sparc*-*-lynxos*) ld_target=sparc-lynx ;;
sparc*-*-solaris2*) ld_target=sun4sol2 ;;
i960-wrs-vxworks*) ld_target=i960 ;;
i960-intel-nindy) ld_target=i960 ;;
@ -90,12 +91,12 @@ case "${targ}" in
exit 1 ;;
hppa*-hp-osf) ld_target=hppaosf ;;
vax-dec-ultrix* | vax-dec-bsd*) ld_target=vax ;;
mips-dec-ultrix*) ld_target=mips-lit ;;
mips-sgi-irix*) ld_target=mips-big ;;
mips-idt-ecoffl*) ld_target=mips-idtl ;;
mips-idt-ecoff*) ld_target=mips-idt ;;
mips-dec-bsd*) ld_target=mipsbsd ;;
mips-*-elf*) ld_target=mipsb-elf32 ;;
mips*-dec-ultrix*) ld_target=mips-lit ;;
mips*-sgi-irix*) ld_target=mips-big ;;
mips*el-idt-ecoff*) ld_target=mips-idtl ;;
mips*-idt-ecoff*) ld_target=mips-idt ;;
mips*-dec-bsd*) ld_target=mipsbsd ;;
mips*-*-elf*) ld_target=mipsb-elf32 ;;
alpha-*-osf*) ld_target=alpha ;;
z8k-*-sim | z8k-*-coff) ld_target=z8ksim ;;
*-*-aout) ld_target=${target_cpu}-${target_vendor} ;;

View file

@ -0,0 +1,9 @@
SCRIPT_NAME=sparccoff
OUTPUT_FORMAT="coff-sparc-lynx"
# This is what /lib/init1.o seems to want.
ENTRY=_main
# following are dubious
PAGE_SIZE=0x1000
TEXT_START_ADDR=0
NONPAGED_TEXT_START_ADDR=0x1000
ARCH=sparc