From: Stan Shebs Date: Fri, 29 Oct 1993 02:39:07 +0000 (+0000) Subject: Sparc Lynx support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b95fe96efc9025196f6901bc43b3261c16b8081;p=binutils-gdb.git Sparc Lynx support --- diff --git a/ld/ChangeLog b/ld/ChangeLog index e74b43e98be..8173dc2545e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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). diff --git a/ld/Makefile.in b/ld/Makefile.in index b8489b074a4..3eadf757043 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -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 diff --git a/ld/config/sparc-lynx.mt b/ld/config/sparc-lynx.mt new file mode 100644 index 00000000000..3f648393616 --- /dev/null +++ b/ld/config/sparc-lynx.mt @@ -0,0 +1,2 @@ +EMUL=sparclynx +OTHER_EMULATIONS=em_sparclynx.o diff --git a/ld/configure.in b/ld/configure.in index 2d7fd6485c8..c11a490bbcb 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -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} ;; diff --git a/ld/emulparams/sparclynx.sh b/ld/emulparams/sparclynx.sh new file mode 100644 index 00000000000..f0b3399787e --- /dev/null +++ b/ld/emulparams/sparclynx.sh @@ -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