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