diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-01-31 19:36:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-01-31 19:36:20 +0000 |
commit | 40ab9bb9d7fa0734bfea8ed08a1b6d02e225fe29 (patch) | |
tree | 77e8691412597d0146535d323986229886454745 /ld | |
parent | c174fb5c71b7c5d89e8b96d6334b334f80a6c073 (diff) | |
download | gdb-40ab9bb9d7fa0734bfea8ed08a1b6d02e225fe29.zip gdb-40ab9bb9d7fa0734bfea8ed08a1b6d02e225fe29.tar.gz gdb-40ab9bb9d7fa0734bfea8ed08a1b6d02e225fe29.tar.bz2 |
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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/configure.tgt | 9 | ||||
-rw-r--r-- | ld/emulparams/.Sanitize | 1 | ||||
-rw-r--r-- | ld/emulparams/m68kaux.sh | 8 | ||||
-rw-r--r-- | ld/scripttempl/.Sanitize | 1 | ||||
-rw-r--r-- | ld/scripttempl/m68kaux.sc | 46 |
6 files changed, 71 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index fc8cd79..0279006 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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 diff --git a/ld/configure.tgt b/ld/configure.tgt index fd1ca1b..6a14519 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 ea92f38..84dd7d5 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 0000000..19e86cc --- /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 8021484..71b8a59 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 0000000..404280e --- /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 <<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 |