Thu Jul 27 15:26:28 1995 steve chamberlain <sac@slash.cygnus.com>

* scripttempl/i386pe.sc: Cope with constructors.
	* scripttempl/z8ksim.sc: Deleted.
	* scripttempl/z8000.sc: Resurrected as this, but
	can handle z8001 and z8002 formats.
	* emulparams/z8ksim.sh: Deleted.
	* emulparams/{z8001.sh, z8002.sh}: New files.
	* config/z8ksim.mt: Deleted
	* config/z8k-coff.mt: New, generates both emulations.
This commit is contained in:
Steve Chamberlain
1995-07-27 22:43:44 +00:00
parent c32dc3904b
commit 66a61efd37
9 changed files with 26 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ sparclynx.sc
st2000.sc
vanilla.sc
w65.sc
z8ksim.sc
z8000.sc
Things-to-lose:

View File

@@ -16,6 +16,8 @@ SECTIONS
{
${RELOCATING+ *(.init);}
*(.text)
${CONSTRUCTING+ ___CTOR_LIST__ = .; LONG (-1); *(.ctor); LONG (0); }
${CONSTRUCTING+ ___DTOR_LIST__ = .; LONG (-1); *(.dtor); LONG (0); }
${RELOCATING+ *(.fini);}
${RELOCATING+ etext = .};
}

View File

@@ -1,17 +1,17 @@
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(z8002)
OUTPUT_ARCH("${OUTPUT_ARCH}")
ENTRY(_start)
SECTIONS
{
.text : {
.text ${BIG+ ${RELOCATING+ 0x0000000}} : {
*(.text)
*(.strings)
*(.rdata)
}
.ctors :
.ctors ${BIG+ ${RELOCATING+ 0x2000000}} :
{
${RELOCATING+ ___ctors = . ; }
*(.ctors);
@@ -21,11 +21,11 @@ SECTIONS
${RELOCATING+ ___dtors_end = . ; }
}
.data : {
.data ${BIG+ ${RELOCATING+ 0x3000000}} : {
*(.data)
}
.bss :
.bss ${BIG+ ${RELOCATING+ 0x4000000}} :
{
${RELOCATING+ __start_bss = . ; }
*(.bss);
@@ -33,7 +33,7 @@ SECTIONS
${RELOCATING+ __end_bss = . ; }
}
.heap : {
.heap ${BIG+ ${RELOCATING+ 0x5000000}} : {
${RELOCATING+ __start_heap = . ; }
${RELOCATING+ . = . + 20k ; }
${RELOCATING+ __end_heap = . ; }