Wed Jan 31 14:34:23 1996 Richard Henderson <rth@tamu.edu>
authorIan Lance Taylor <ian@airs.com>
Wed, 31 Jan 1996 19:36:20 +0000 (19:36 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 31 Jan 1996 19:36:20 +0000 (19:36 +0000)
* 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
ld/configure.tgt
ld/emulparams/.Sanitize
ld/emulparams/m68kaux.sh [new file with mode: 0644]
ld/scripttempl/.Sanitize
ld/scripttempl/m68kaux.sc [new file with mode: 0644]

index fc8cd79d81dd81e34aac8a136cb9d1355221eaaa..0279006295d29289fdb6f1218ffe67feb8b5d0ec 100644 (file)
@@ -1,3 +1,11 @@
+Wed Jan 31 14:34:23 1996  Richard Henderson  <rth@tamu.edu>
+
+       * 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  <ian@cygnus.com>
 
        * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Ignore
index fd1ca1bbc05cd204f3da71062800c80fef2a13c8..6a1451961c7493c4becc526608df1068132e3b4b 100644 (file)
@@ -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 ;;
index ea92f386110a81561d861b819f1f7f3ce264008b..84dd7d59e8898f752a7e8f0b7863d61afd46caa0 100644 (file)
@@ -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 (file)
index 0000000..19e86cc
--- /dev/null
@@ -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
index 8021484f64e43f4435622c8f90cc5df064117c3a..71b8a5979308a6a855a5f64bd170b3f09fd2ab28 100644 (file)
@@ -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 (file)
index 0000000..404280e
--- /dev/null
@@ -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 <<EOF
+OUTPUT_FORMAT("${OUTPUT_FORMAT}")
+${LIB_SEARCH_DIRS}
+
+ENTRY(${ENTRY})
+
+SECTIONS
+{
+  .text ${RELOCATING+ $TEXT_START_ADDR} : {
+    ${RELOCATING+ *(.init)}
+    ${RELOCATING+ *(.fini)}
+    *(.text)
+    ${RELOCATING+ . = ALIGN(4);}
+    ${RELOCATING+ *(.ctors)}
+    ${RELOCATING+ *(.dtors)}
+    ${RELOCATING+ etext = .;}
+    ${RELOCATING+ _etext = .;}
+  } =0x4E714E71
+  .data ${RELOCATING+ $DATA_ALIGNMENT} : {
+    *(.data)
+    ${RELOCATING+ edata = .;}
+    ${RELOCATING+ _edata = .;}
+  }
+  .bss : {
+    *(.bss)
+    *(COMMON)
+    ${RELOCATING+ end = .;}
+    ${RELOCATING+ _end = .;}
+  }
+  ${RELOCATING- ${INIT}}
+  ${RELOCATING- ${FINI}}
+  ${RELOCATING- ${CTORS}}
+  ${RELOCATING- ${DTORS}}
+
+  .comment 0 ${RELOCATING+(NOLOAD)} : { [ .comment ] [ .ident ] }
+  .stab 0 ${RELOCATING+(NOLOAD)} : { [ .stab ] }
+  .stabstr 0 ${RELOCATING+(NOLOAD)} : { [ .stabstr ] }
+}
+EOF