1992-02-16 06:07:15 +08:00
|
|
|
cat <<EOF
|
1992-03-03 06:22:59 +08:00
|
|
|
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
|
1992-02-16 06:07:15 +08:00
|
|
|
OUTPUT_ARCH(${ARCH})
|
|
|
|
|
|
|
|
MEMORY {
|
|
|
|
rom : o = 0x0000, l = 0x7fe0
|
|
|
|
duart : o = 0x7fe0, l = 16
|
1992-03-03 06:22:59 +08:00
|
|
|
ram : o = 0x8000, l = 28k
|
|
|
|
topram: o = 0x8000+28k, l = 1k
|
1992-02-16 06:07:15 +08:00
|
|
|
hmsram: o = 0xfb80, l = 512
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
*(.strings)
|
1992-03-03 06:22:59 +08:00
|
|
|
_etext = .;
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ > ram}
|
1992-02-16 06:07:15 +08:00
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
1992-03-03 06:22:59 +08:00
|
|
|
_edata = .;
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ > ram}
|
1992-02-16 06:07:15 +08:00
|
|
|
.bss :
|
|
|
|
{
|
1992-03-03 06:22:59 +08:00
|
|
|
${RELOCATING+ _bss_start = .};
|
1992-02-16 06:07:15 +08:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
1992-03-03 06:22:59 +08:00
|
|
|
${RELOCATING+ _end = .};
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ >ram}
|
1992-03-03 06:22:59 +08:00
|
|
|
.stack :
|
|
|
|
{
|
|
|
|
*(.stack)
|
|
|
|
} ${RELOCATING+ > topram}
|
1992-02-16 06:07:15 +08:00
|
|
|
}
|
|
|
|
EOF
|
1992-03-03 06:22:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|