From 028f88721998a18e317360487e3a9109a3b866df Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 27 Apr 1994 00:31:11 +0000 Subject: [PATCH] Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com) * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use Lynx-specific script templates. * configure.in (sparclite*-*-coff): Use coff-sparc. * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx. * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx. (ENTRY): Set to __main. * scripttempl/i386lynx.sc: New file, script for I386 Lynx. * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections. * scripttempl/sparclynx.sc: New file, script for uSparc Lynx. --- ld/ChangeLog | 12 ++++++++++ ld/Makefile.in | 10 ++++---- ld/configure.in | 1 + ld/emulparams/sparclynx.sh | 4 ++-- ld/scripttempl/i386lynx.sc | 46 ++++++++++++++++++++++++++++++++++++ ld/scripttempl/sparclynx.sc | 47 +++++++++++++++++++++++++++++++++++++ 6 files changed, 113 insertions(+), 7 deletions(-) create mode 100644 ld/scripttempl/i386lynx.sc create mode 100644 ld/scripttempl/sparclynx.sc diff --git a/ld/ChangeLog b/ld/ChangeLog index 0db00527bd9..c6b16c11a11 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,15 @@ +Tue Apr 26 17:20:03 1994 Stan Shebs (shebs@andros.cygnus.com) + + * Makefile.in (em_m68klynx.c, em_i386lynx.c, em_sparclynx.c): Use + Lynx-specific script templates. + * configure.in (sparclite*-*-coff): Use coff-sparc. + * emulparams/i386lynx.sh (SCRIPT_NAME): Set to i386lynx. + * emulparams/sparclynx.sh (SCRIPT_NAME): Set to sparclynx. + (ENTRY): Set to __main. + * scripttempl/i386lynx.sc: New file, script for I386 Lynx. + * scripttempl/m68klynx.sc: Add insertion of ctor/dtor sections. + * scripttempl/sparclynx.sc: New file, script for uSparc Lynx. + Tue Apr 26 12:41:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * scripttempl/mips.sc: Force _gp and .lit8 to be aligned to a 16 diff --git a/ld/Makefile.in b/ld/Makefile.in index 64fdab4e389..bb3246be762 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -342,17 +342,14 @@ em_delta68.c: $(srcdir)/emulparams/delta68.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/delta68.sc ${GEN_DEPENDS} ${GENSCRIPTS} delta68 em_m68klynx.c: $(srcdir)/emulparams/m68klynx.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68kcoff.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/m68klynx.sc ${GEN_DEPENDS} ${GENSCRIPTS} m68klynx em_i386coff.c: $(srcdir)/emulparams/i386coff.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} ${GENSCRIPTS} i386coff em_i386lynx.c: $(srcdir)/emulparams/i386lynx.sh \ - $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386coff.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/i386lynx.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 @@ -383,6 +380,9 @@ em_alpha.c: $(srcdir)/emulparams/alpha.sh \ em_coff_sparc.c: $(srcdir)/emulparams/coff_sparc.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparccoff.sc ${GEN_DEPENDS} ${GENSCRIPTS} coff_sparc +em_sparclynx.c: $(srcdir)/emulparams/sparclynx.sh \ + $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/sparclynx.sc ${GEN_DEPENDS} + ${GENSCRIPTS} sparclynx em_elf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ $(srcdir)/emultempl/generic.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32ppc diff --git a/ld/configure.in b/ld/configure.in index b657e8eec9e..14f138b8e7f 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -41,6 +41,7 @@ do case "${targ}" in sparc-sun-sunos4*) ld_target=sun4 ;; + sparclite*-*-coff) ld_target=coff-sparc ;; sparclite*-fujitsu-*) ld_target=sun4 ;; sparc*-*-aout) ld_target=sun4 ;; sparc*-*-coff) ld_target=coff-sparc ;; diff --git a/ld/emulparams/sparclynx.sh b/ld/emulparams/sparclynx.sh index dd674135289..c85c8d59cc0 100644 --- a/ld/emulparams/sparclynx.sh +++ b/ld/emulparams/sparclynx.sh @@ -1,7 +1,7 @@ -SCRIPT_NAME=sparccoff +SCRIPT_NAME=sparclynx OUTPUT_FORMAT="coff-sparc-lynx" # This is what LynxOS /lib/init1.o wants. -ENTRY=_main +ENTRY=__main # following are dubious PAGE_SIZE=0x1000 TEXT_START_ADDR=0 diff --git a/ld/scripttempl/i386lynx.sc b/ld/scripttempl/i386lynx.sc new file mode 100644 index 00000000000..b1bfdb7e4b3 --- /dev/null +++ b/ld/scripttempl/i386lynx.sc @@ -0,0 +1,46 @@ +test -z "$ENTRY" && ENTRY=_start +cat <