old-cross-binutils/ld/scripttempl/z8000.sc

58 lines
932 B
Python
Raw Normal View History

1999-05-03 07:29:11 +00:00
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH("${OUTPUT_ARCH}")
2009-09-09 11:59:14 +00:00
${RELOCATING+ENTRY (_start)}
1999-05-03 07:29:11 +00:00
SECTIONS
{
.text ${BIG+ ${RELOCATING+ 0x0000000}} :
{
1999-05-03 07:29:11 +00:00
*(.text)
*(.strings)
*(.rdata)
}
.ctors ${BIG+ ${RELOCATING+ 0x2000000}} :
{
${CONSTRUCTING+ ___ctors = . ; }
1999-05-03 07:29:11 +00:00
*(.ctors);
${CONSTRUCTING+ ___ctors_end = . ; }
1999-05-03 07:29:11 +00:00
___dtors = . ;
*(.dtors);
${CONSTRUCTING+ ___dtors_end = . ; }
1999-05-03 07:29:11 +00:00
}
.data ${BIG+ ${RELOCATING+ 0x3000000}} :
{
*(.data)
1999-05-03 07:29:11 +00:00
}
.bss ${BIG+ ${RELOCATING+ 0x4000000}} :
{
${RELOCATING+ __start_bss = . ; }
*(.bss);
*(COMMON);
${RELOCATING+ __end_bss = . ; }
}
.heap ${BIG+ ${RELOCATING+ 0x5000000}} :
{
${RELOCATING+ __start_heap = . ; }
${RELOCATING+ . = . + 20k ; }
${RELOCATING+ __end_heap = . ; }
1999-05-03 07:29:11 +00:00
}
.stack ${RELOCATING+ 0xf000 } :
{
${RELOCATING+ _stack = . ; }
*(.stack)
${RELOCATING+ __stack_top = . ; }
}
1999-05-03 07:29:11 +00:00
}
EOF