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 64k total */
|
|
|
|
|
2001-01-11 02:58:36 +08:00
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text ${RELOCATING+ 0x0000} :
|
|
|
|
{
|
2000-11-04 03:49:05 +08:00
|
|
|
*(.text)
|
2001-01-11 02:58:36 +08:00
|
|
|
${RELOCATING+ _etext = . ; }
|
1999-05-03 15:29:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.data ${RELOCATING+ . } :
|
|
|
|
{
|
2000-11-04 03:49:05 +08:00
|
|
|
*(.data)
|
|
|
|
${RELOCATING+ _edata = . ; }
|
2001-01-11 02:58:36 +08:00
|
|
|
}
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
.rdata ${RELOCATING+ . } :
|
|
|
|
{
|
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
|
|
|
|
2000-11-04 03:49:05 +08:00
|
|
|
${CONSTRUCTING+${TORS}}
|
2001-01-11 02:58:36 +08:00
|
|
|
}
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
.bss ${RELOCATING+ . } :
|
|
|
|
{
|
2000-11-04 03:49:05 +08:00
|
|
|
${RELOCATING+ __start_bss = . ; }
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
${RELOCATING+ _end = . ; }
|
1999-05-03 15:29:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.stack ${RELOCATING+ 0xfff0} :
|
|
|
|
{
|
2000-11-04 03:49:05 +08:00
|
|
|
${RELOCATING+ _stack = . ; }
|
|
|
|
*(.stack)
|
2001-01-11 02:58:36 +08:00
|
|
|
}
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-01-11 02:58:36 +08:00
|
|
|
.stab 0 ${RELOCATING+(NOLOAD)} :
|
2000-11-04 03:49:05 +08:00
|
|
|
{
|
|
|
|
[ .stab ]
|
|
|
|
}
|
2001-01-11 02:58:36 +08:00
|
|
|
|
2000-11-04 03:49:05 +08:00
|
|
|
.stabstr 0 ${RELOCATING+(NOLOAD)} :
|
|
|
|
{
|
|
|
|
[ .stabstr ]
|
|
|
|
}
|
1999-05-03 15:29:11 +08:00
|
|
|
}
|
|
|
|
EOF
|