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

70 lines
1.4 KiB
Python
Raw Normal View History

2016-01-01 11:25:12 +00:00
# Copyright (C) 2014-2016 Free Software Foundation, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
1999-05-03 07:29:11 +00:00
cat <<EOF
2016-01-01 11:25:12 +00:00
/* Copyright (C) 2014-2016 Free Software Foundation, Inc.
Copying and distribution of this script, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. */
1999-05-03 07:29:11 +00:00
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