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