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
|
1992-04-05 09:47:16 +08:00
|
|
|
topram : o = 0x8000+28k, l = 1k
|
|
|
|
hmsram : o = 0xfb80, l = 512
|
1992-02-16 06:07:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
*(.strings)
|
1992-08-08 03:34:59 +08:00
|
|
|
${RELOCATING+ _etext = . ; }
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ > ram}
|
1992-02-16 06:07:15 +08:00
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data)
|
1992-08-08 03:34:59 +08:00
|
|
|
${RELOCATING+ _edata = . ; }
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ > ram}
|
1992-02-16 06:07:15 +08:00
|
|
|
.bss :
|
|
|
|
{
|
1992-08-08 03:34:59 +08:00
|
|
|
${RELOCATING+ _bss_start = . ;}
|
1992-02-16 06:07:15 +08:00
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
1992-08-08 03:34:59 +08:00
|
|
|
${RELOCATING+ _end = . ; }
|
1992-02-16 07:13:00 +08:00
|
|
|
} ${RELOCATING+ >ram}
|
1992-03-03 06:22:59 +08:00
|
|
|
.stack :
|
|
|
|
{
|
1992-08-08 03:34:59 +08:00
|
|
|
${RELOCATING+ _stack = . ; }
|
1992-03-03 06:22:59 +08:00
|
|
|
*(.stack)
|
|
|
|
} ${RELOCATING+ > topram}
|
1992-02-16 06:07:15 +08:00
|
|
|
}
|
|
|
|
EOF
|
1992-03-03 06:22:59 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|