From 506f4ede9c1e5ae444a496854fdec7db869a2f53 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 16 Jan 1995 00:51:02 +0000 Subject: [PATCH] * configure.in (w65-*-*): New target. * Makefile.in: Update. * scripttempl/w65.sc: New. * config/coff-w65.mt: New. --- ld/ChangeLog | 7 +++++ ld/config/.Sanitize | 1 + ld/config/coff-w65.mt | 3 +++ ld/emulparams/.Sanitize | 1 + ld/emulparams/w65.sh | 5 ++++ ld/scripttempl/.Sanitize | 1 + ld/scripttempl/w65.sc | 58 ++++++++++++++++++++++++++++++++++++++++ 7 files changed, 76 insertions(+) create mode 100755 ld/config/coff-w65.mt create mode 100644 ld/emulparams/w65.sh create mode 100644 ld/scripttempl/w65.sc diff --git a/ld/ChangeLog b/ld/ChangeLog index 7cb48a6f97..f95b2bbaa7 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +Sun Jan 15 16:45:00 1995 Steve Chamberlain + + * configure.in (w65-*-*): New target. + * Makefile.in: Update. + * scripttempl/w65.sc: New. + * config/coff-w65.mt: New. + Thu Jan 12 01:32:25 1995 Ian Lance Taylor * ldlang.c (lang_place_orphans): Don't ignore files with diff --git a/ld/config/.Sanitize b/ld/config/.Sanitize index f9b7e8959f..6ba1528ab8 100644 --- a/ld/config/.Sanitize +++ b/ld/config/.Sanitize @@ -116,6 +116,7 @@ vax.mt vsta.mt vxworks68.mt z8ksim.mt +coff-w65.mt Things-to-lose: diff --git a/ld/config/coff-w65.mt b/ld/config/coff-w65.mt new file mode 100755 index 0000000000..36af96cca5 --- /dev/null +++ b/ld/config/coff-w65.mt @@ -0,0 +1,3 @@ +EMUL=w65 + + diff --git a/ld/emulparams/.Sanitize b/ld/emulparams/.Sanitize index 388c8befb7..e3c198778f 100644 --- a/ld/emulparams/.Sanitize +++ b/ld/emulparams/.Sanitize @@ -99,6 +99,7 @@ sun4.sh vanilla.sh vax.sh vsta.sh +w65.sh z8ksim.sh Things-to-lose: diff --git a/ld/emulparams/w65.sh b/ld/emulparams/w65.sh new file mode 100644 index 0000000000..6f4d5ba0ed --- /dev/null +++ b/ld/emulparams/w65.sh @@ -0,0 +1,5 @@ +SCRIPT_NAME=w65 +OUTPUT_FORMAT="coff-w65" +TEXT_START_ADDR=0x1000 +PAGE_SIZE=64 +ARCH=w65 diff --git a/ld/scripttempl/.Sanitize b/ld/scripttempl/.Sanitize index 8b816be6ac..287648ab7e 100644 --- a/ld/scripttempl/.Sanitize +++ b/ld/scripttempl/.Sanitize @@ -63,6 +63,7 @@ sparccoff.sc sparclynx.sc st2000.sc vanilla.sc +w65.sc z8ksim.sc Things-to-lose: diff --git a/ld/scripttempl/w65.sc b/ld/scripttempl/w65.sc new file mode 100644 index 0000000000..f904495295 --- /dev/null +++ b/ld/scripttempl/w65.sc @@ -0,0 +1,58 @@ +cat < ram} + + +.tors : { + ___ctors = . ; + *(.ctors) + ___ctors_end = . ; + ___dtors = . ; + *(.dtors) + ___dtors_end = . ; +} ${RELOCATING+ > ram} + +.data : + { + *(.data) + ${RELOCATING+ _edata = . ; } + } ${RELOCATING+ > ram} +.bss : + { + ${RELOCATING+ _bss_start = . ; } + *(.bss) + *(COMMON) + ${RELOCATING+ _end = . ; } + } ${RELOCATING+ >ram} +.stack ${RELOCATING+ 0x30000 } : + { + ${RELOCATING+ _stack = . ; } + *(.stack) + } ${RELOCATING+ > ram} + .stab . (NOLOAD) : + { + [ .stab ] + } + .stabstr . (NOLOAD) : + { + [ .stabstr ] + } +} +EOF + + + +