2016-01-01 11:25:12 +00:00
|
|
|
# Copyright (C) 2014-2016 Free Software Foundation, Inc.
|
2014-08-20 09:34:58 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2014-08-20 09:34:58 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2000-11-03 19:49:05 +00:00
|
|
|
.text ${BIG+ ${RELOCATING+ 0x0000000}} :
|
|
|
|
{
|
1999-05-03 07:29:11 +00:00
|
|
|
*(.text)
|
|
|
|
*(.strings)
|
|
|
|
*(.rdata)
|
|
|
|
}
|
|
|
|
|
|
|
|
.ctors ${BIG+ ${RELOCATING+ 0x2000000}} :
|
|
|
|
{
|
2000-11-03 19:49:05 +00:00
|
|
|
${CONSTRUCTING+ ___ctors = . ; }
|
1999-05-03 07:29:11 +00:00
|
|
|
*(.ctors);
|
2000-11-03 19:49:05 +00:00
|
|
|
${CONSTRUCTING+ ___ctors_end = . ; }
|
1999-05-03 07:29:11 +00:00
|
|
|
___dtors = . ;
|
|
|
|
*(.dtors);
|
2000-11-03 19:49:05 +00:00
|
|
|
${CONSTRUCTING+ ___dtors_end = . ; }
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
|
2000-11-03 19:49:05 +00:00
|
|
|
.data ${BIG+ ${RELOCATING+ 0x3000000}} :
|
|
|
|
{
|
|
|
|
*(.data)
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bss ${BIG+ ${RELOCATING+ 0x4000000}} :
|
2000-11-03 19:49:05 +00:00
|
|
|
{
|
|
|
|
${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 } :
|
|
|
|
{
|
2000-11-03 19:49:05 +00:00
|
|
|
${RELOCATING+ _stack = . ; }
|
|
|
|
*(.stack)
|
|
|
|
${RELOCATING+ __stack_top = . ; }
|
|
|
|
}
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|