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
|
|
|
|
{
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|