2000-11-03 19:49:05 +00:00
|
|
|
TORS="
|
|
|
|
___ctors = . ;
|
|
|
|
*(.ctors)
|
|
|
|
___ctors_end = . ;
|
|
|
|
___dtors = . ;
|
|
|
|
*(.dtors)
|
|
|
|
___dtors_end = . ;"
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
cat <<EOF
|
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
|
|
|
|
/* Code and data, both larger than 64k */
|
|
|
|
|
2001-01-10 18:58:36 +00:00
|
|
|
SECTIONS
|
|
|
|
{
|
1999-05-03 07:29:11 +00:00
|
|
|
.text ${RELOCATING+ 0x10000} :
|
2001-01-10 18:58:36 +00:00
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
${RELOCATING+ _etext = . ; }
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.data ${RELOCATING+ 0x20000} :
|
|
|
|
{
|
2001-01-10 18:58:36 +00:00
|
|
|
*(.data)
|
|
|
|
${RELOCATING+ _edata = . ; }
|
|
|
|
}
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
.rdata ${RELOCATING+ 0x30000} :
|
|
|
|
{
|
2001-01-10 18:58:36 +00:00
|
|
|
*(.rdata);
|
1999-05-03 07:29:11 +00:00
|
|
|
*(.strings)
|
2001-01-10 18:58:36 +00:00
|
|
|
|
|
|
|
${CONSTRUCTING+${TORS}}
|
|
|
|
}
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
.bss ${RELOCATING+ 0x40000} :
|
|
|
|
{
|
2001-01-10 18:58:36 +00:00
|
|
|
${RELOCATING+ __start_bss = . ; }
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+ _end = . ; }
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.stack ${RELOCATING+ 0x50000} :
|
|
|
|
{
|
2001-01-10 18:58:36 +00:00
|
|
|
${RELOCATING+ _stack = . ; }
|
|
|
|
*(.stack)
|
|
|
|
}
|
|
|
|
|
|
|
|
.stab 0 ${RELOCATING+(NOLOAD)} :
|
|
|
|
{
|
|
|
|
[ .stab ]
|
|
|
|
}
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2001-01-10 18:58:36 +00:00
|
|
|
.stabstr 0 ${RELOCATING+(NOLOAD)} :
|
|
|
|
{
|
|
|
|
[ .stabstr ]
|
|
|
|
}
|
1999-05-03 07:29:11 +00:00
|
|
|
}
|
|
|
|
EOF
|