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.
This commit is contained in:
Ian Lance Taylor 1996-01-31 19:36:20 +00:00
parent c174fb5c71
commit 40ab9bb9d7
6 changed files with 71 additions and 2 deletions

View 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

View 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 ;;

View File

@ -88,6 +88,7 @@ i386pe.sh
lnk960.sh
m68k4knbsd.sh
m68kaout.sh
m68kaux.sh
m68kcoff.sh
m68kelf.sh
m68klynx.sh

8
ld/emulparams/m68kaux.sh Normal file
View File

@ -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

View File

@ -57,6 +57,7 @@ i386go32.sc
i386lynx.sc
i386msdos.sc
i960.sc
m68kaux.sc
m68kcoff.sc
m68klynx.sc
m88kbcs.sc

46
ld/scripttempl/m68kaux.sc Normal file
View File

@ -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