From 40ab9bb9d7fa0734bfea8ed08a1b6d02e225fe29 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 31 Jan 1996 19:36:20 +0000 Subject: [PATCH] Wed Jan 31 14:34:23 1996 Richard Henderson * configure.tgt (m68*-apple-aux*): New target. * emulparams/m68kaux.sh: New file. * scripttempl/m68kaux.sc: New file. * Makefile.in (ALL_EMULATIONS): Add em68kaux.o. (em68kaux.c): New target. --- ld/ChangeLog | 8 +++++++ ld/configure.tgt | 9 ++++++-- ld/emulparams/.Sanitize | 1 + ld/emulparams/m68kaux.sh | 8 +++++++ ld/scripttempl/.Sanitize | 1 + ld/scripttempl/m68kaux.sc | 46 +++++++++++++++++++++++++++++++++++++++ 6 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 ld/emulparams/m68kaux.sh create mode 100644 ld/scripttempl/m68kaux.sc diff --git a/ld/ChangeLog b/ld/ChangeLog index fc8cd79d81d..0279006295d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +Wed Jan 31 14:34:23 1996 Richard Henderson + + * configure.tgt (m68*-apple-aux*): New target. + * emulparams/m68kaux.sh: New file. + * scripttempl/m68kaux.sc: New file. + * Makefile.in (ALL_EMULATIONS): Add em68kaux.o. + (em68kaux.c): New target. + Tue Jan 30 13:18:56 1996 Ian Lance Taylor * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore diff --git a/ld/configure.tgt b/ld/configure.tgt index fd1ca1bbc05..6a1451961c7 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -15,13 +15,14 @@ arm-*-pe) targ_emul=armpe ;; # start-sanitize-arc arc-*-elf*) targ_emul=arcelf ;; # end-sanitize-arc +sparc64-*-aout*) targ_emul=sun4 ;; +sparc64-*-elf*) targ_emul=elf64_sparc ;; +sparc64-*-solaris2*) targ_emul=elf32_sparc ;; sparc-sun-sunos4*) targ_emul=sun4 ;; sparclite*-*-coff) targ_emul=coff_sparc ;; sparclite*-fujitsu-*) targ_emul=sun4 ;; sparc*-*-aout) targ_emul=sun4 ;; sparc*-*-coff) targ_emul=coff_sparc ;; -sparc64-*-elf*) targ_emul=elf64_sparc ;; -sparc64*) targ_emul=sun4 ;; sparc*-*-elf) targ_emul=elf32_sparc ;; sparc*-*-lynxos*) targ_emul=sparclynx ;; sparc*-*-netbsd*) targ_emul=sparcnbsd ;; @@ -35,6 +36,7 @@ i960-intel-nindy) targ_emul=gldi960 ;; m68*-sun-sunos[34]*) targ_emul=sun3 ;; m68*-wrs-vxworks*) targ_emul=sun3 ;; m68*-ericsson-ose) targ_emul=sun3 ;; +m68*-apple-aux*) targ_emul=m68kaux ;; *-tandem-none) targ_emul=st2000 ;; i[345]86-*-vsta) targ_emul=vsta ;; i[345]86-*-go32) targ_emul=i386go32 ;; @@ -112,7 +114,10 @@ ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532machaout ;; ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;; powerpc-*-elf* | powerpc-*-eabi*) targ_emul=elf32ppc ;; powerpcle-*-elf* | powerpcle-*-eabi*) targ_emul=elf32lppc ;; +powerpc-*-macos*) targ_emul=ppcmacos ;; powerpc-*-netware*) targ_emul=ppcnw ;; +powerpcle-*-pe) targ_emul=ppcpe ;; +powerpcle-*-winnt*) targ_emul=ppcpe ;; powerpc-*-aix*) targ_emul=aixppc ;; rs6000-*-aix*) targ_emul=aixrs6 ;; w65-*-*) targ_emul=w65 ;; diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index ea92f386110..84dd7d59e88 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -88,6 +88,7 @@ i386pe.sh lnk960.sh m68k4knbsd.sh m68kaout.sh +m68kaux.sh m68kcoff.sh m68kelf.sh m68klynx.sh diff --git a/ld/emulparams/m68kaux.sh b/ld/emulparams/m68kaux.sh new file mode 100644 index 00000000000..19e86cc6cd1 --- /dev/null +++ b/ld/emulparams/m68kaux.sh @@ -0,0 +1,8 @@ +SCRIPT_NAME=m68kaux +OUTPUT_FORMAT="coff-m68k-aux" +SEGMENT_SIZE=0x40000 +TARGET_PAGE_SIZE=0x1000 +TEXT_START_ADDR="$SEGMENT_SIZE + SIZEOF_HEADERS" +NON_PAGED_TEXT_START_ADDR=SIZEOF_HEADERS +DATA_ALIGNMENT_="(. & (-$SEGMENT_SIZE | $TARGET_PAGE_SIZE-1)) + $SEGMENT_SIZE" +ARCH=m68k diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 8021484f64e..71b8a597930 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -57,6 +57,7 @@ i386go32.sc i386lynx.sc i386msdos.sc i960.sc +m68kaux.sc m68kcoff.sc m68klynx.sc m88kbcs.sc diff --git a/ld/scripttempl/m68kaux.sc b/ld/scripttempl/m68kaux.sc new file mode 100644 index 00000000000..404280e1272 --- /dev/null +++ b/ld/scripttempl/m68kaux.sc @@ -0,0 +1,46 @@ +# Linker script for A/UX. +test -z "$ENTRY" && ENTRY=_start +INIT='.init : { *(.init) }' +FINI='.fini : { *(.fini) }' +CTORS='.ctors : { *(.ctors) }' +DTORS='.dtors : { *(.dtors) }' + +cat <