Sparc Lynx support
authorStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:39:07 +0000 (02:39 +0000)
committerStan Shebs <shebs@codesourcery.com>
Fri, 29 Oct 1993 02:39:07 +0000 (02:39 +0000)
ld/ChangeLog
ld/Makefile.in
ld/config/sparc-lynx.mt [new file with mode: 0644]
ld/configure.in
ld/emulparams/sparclynx.sh [new file with mode: 0644]

index e74b43e98be96f9882df7c57587eb7a3b89e939c..8173dc2545e80d52509b6cd823edf8a01b22ac7f 100644 (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).
index b8489b074a47b5105f38983a8adfdbc8bd7cc229..3eadf7570438cc8e28bbb8aaf35e40308e4bec99 100644 (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
diff --git a/ld/config/sparc-lynx.mt b/ld/config/sparc-lynx.mt
new file mode 100644 (file)
index 0000000..3f64839
--- /dev/null
@@ -0,0 +1,2 @@
+EMUL=sparclynx
+OTHER_EMULATIONS=em_sparclynx.o
index 2d7fd6485c8a1af7910f41124861174538c5cfb8..c11a490bbcbe04cb555db9af17733d04160c0992 100644 (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} ;;
diff --git a/ld/emulparams/sparclynx.sh b/ld/emulparams/sparclynx.sh
new file mode 100644 (file)
index 0000000..f0b3399
--- /dev/null
@@ -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