2001-01-17 08:21:47 +03:00
|
|
|
OUTPUT_FORMAT("coff-shl")
|
|
|
|
OUTPUT_ARCH(sh)
|
|
|
|
MEMORY
|
|
|
|
{
|
2001-01-21 21:34:37 +03:00
|
|
|
ram : o = 0x8C001000, l = 16M
|
2001-01-17 08:21:47 +03:00
|
|
|
}
|
|
|
|
SECTIONS
|
|
|
|
{
|
2001-01-21 21:34:37 +03:00
|
|
|
ROM = 0x80001000;
|
2001-01-17 08:21:47 +03:00
|
|
|
|
|
|
|
.text :
|
|
|
|
AT (ROM)
|
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
*(.strings)
|
|
|
|
_etext = . ;
|
|
|
|
} > ram
|
|
|
|
.tors :
|
|
|
|
AT ( ROM + SIZEOF(.text))
|
|
|
|
{
|
|
|
|
___ctors = . ;
|
|
|
|
*(.ctors)
|
|
|
|
___ctors_end = . ;
|
|
|
|
___dtors = . ;
|
|
|
|
*(.dtors)
|
|
|
|
___dtors_end = . ;
|
|
|
|
} > ram
|
|
|
|
.data :
|
|
|
|
AT ( ROM + SIZEOF(.text) + SIZEOF(.tors))
|
|
|
|
{
|
|
|
|
*(.data)
|
|
|
|
_edata = . ;
|
|
|
|
} > ram
|
|
|
|
.bss :
|
|
|
|
AT ( ROM + SIZEOF(.text) + SIZEOF(.tors) + SIZEOF(.data))
|
|
|
|
{
|
|
|
|
_bss_start = . ;
|
|
|
|
*(.bss)
|
|
|
|
*(COMMON)
|
|
|
|
_end = . ;
|
|
|
|
} > ram
|
|
|
|
}
|