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