2019-10-11 23:36:57 +08:00
|
|
|
MEMORY
|
2023-02-26 02:14:11 +08:00
|
|
|
{
|
|
|
|
/* RSK-RX65N-1MB */
|
2019-10-11 23:36:57 +08:00
|
|
|
/*
|
|
|
|
RAM : ORIGIN = 0x0, LENGTH = 262144
|
|
|
|
ROM : ORIGIN = 0xFFF00000, LENGTH = 1048576
|
|
|
|
OFS : ORIGIN = 0xFE7F5D00, LENGTH = 256
|
2023-02-26 02:14:11 +08:00
|
|
|
*/
|
|
|
|
/* RSK-RX65N-2MB | GR-ROSE */
|
2019-10-11 23:36:57 +08:00
|
|
|
RAM : ORIGIN = 0x0, LENGTH = 262144
|
2023-02-26 02:14:11 +08:00
|
|
|
RAMHI : ORIGIN = 0x800000, LENGTH = 393216
|
|
|
|
ROM : ORIGIN = 0xFFE00000, LENGTH = 2097152
|
|
|
|
OFS : ORIGIN = 0xFE7F5D00, LENGTH = 256
|
2019-10-11 23:36:57 +08:00
|
|
|
}
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.exvectors 0xFFFFFF80: AT(0xFFFFFF80)
|
|
|
|
{
|
|
|
|
_exvectors_start = .;
|
|
|
|
KEEP(*(.exvectors))
|
|
|
|
_exvectors_end = .;
|
2020-01-31 23:15:01 +08:00
|
|
|
} > ROM
|
2019-10-11 23:36:57 +08:00
|
|
|
.fvectors 0xFFFFFFFC: AT(0xFFFFFFFC)
|
|
|
|
{
|
|
|
|
KEEP(*(.fvectors))
|
2023-02-26 02:14:11 +08:00
|
|
|
} > ROM
|
|
|
|
/* RSK-RX65N-1MB */
|
|
|
|
|
2020-03-02 20:16:04 +08:00
|
|
|
/* .text 0xFFF00000: AT(0xFFF00000) */
|
2023-02-26 02:14:11 +08:00
|
|
|
|
|
|
|
/* RSK-RX65N-2MB | GR-ROSE */
|
|
|
|
.text 0xFFE00000: AT(0xFFE00000)
|
2019-10-11 23:36:57 +08:00
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.text.*)
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(P)
|
|
|
|
etext = .;
|
|
|
|
} > ROM
|
|
|
|
.rvectors :
|
|
|
|
{
|
|
|
|
_rvectors_start = .;
|
|
|
|
KEEP(*(.rvectors))
|
|
|
|
_rvectors_end = .;
|
|
|
|
} > ROM
|
2020-01-31 23:15:01 +08:00
|
|
|
/*.exvectors :
|
2019-10-11 23:36:57 +08:00
|
|
|
{
|
|
|
|
_exvectors_start = .;
|
|
|
|
KEEP(*(.exvectors))
|
|
|
|
_exvectors_end = .;
|
|
|
|
} > ROM */
|
|
|
|
.init :
|
|
|
|
{
|
|
|
|
KEEP(*(.init))
|
|
|
|
__preinit_array_start = .;
|
|
|
|
KEEP(*(.preinit_array))
|
|
|
|
__preinit_array_end = .;
|
|
|
|
__init_array_start = (. + 3) & ~ 3;
|
2023-08-25 15:02:40 +08:00
|
|
|
KEEP(*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
|
2023-12-22 11:45:30 +08:00
|
|
|
KEEP(*(.init_array EXCLUDE_FILE(*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o) .ctors))
|
2019-10-11 23:36:57 +08:00
|
|
|
__init_array_end = .;
|
|
|
|
__fini_array_start = .;
|
|
|
|
KEEP(*(.fini_array))
|
|
|
|
KEEP(*(SORT(.fini_array.*)))
|
|
|
|
__fini_array_end = .;
|
|
|
|
} > ROM
|
|
|
|
.fini :
|
|
|
|
{
|
|
|
|
KEEP(*(.fini))
|
|
|
|
} > ROM
|
|
|
|
.got :
|
|
|
|
{
|
|
|
|
*(.got)
|
|
|
|
*(.got.plt)
|
|
|
|
} > ROM
|
|
|
|
.rodata :
|
|
|
|
{
|
|
|
|
*(.rodata)
|
|
|
|
*(.rodata.*)
|
|
|
|
*(C_1)
|
|
|
|
*(C_2)
|
|
|
|
*(C)
|
|
|
|
_erodata = .;
|
|
|
|
} > ROM
|
|
|
|
.eh_frame_hdr :
|
|
|
|
{
|
|
|
|
*(.eh_frame_hdr)
|
|
|
|
} > ROM
|
|
|
|
.eh_frame :
|
|
|
|
{
|
|
|
|
*(.eh_frame)
|
|
|
|
} > ROM
|
|
|
|
.jcr :
|
|
|
|
{
|
|
|
|
*(.jcr)
|
|
|
|
} > ROM
|
|
|
|
.tors :
|
|
|
|
{
|
|
|
|
__CTOR_LIST__ = .;
|
|
|
|
. = ALIGN(2);
|
|
|
|
___ctors = .;
|
|
|
|
*(.ctors)
|
|
|
|
___ctors_end = .;
|
|
|
|
__CTOR_END__ = .;
|
|
|
|
__DTOR_LIST__ = .;
|
|
|
|
___dtors = .;
|
|
|
|
*(.dtors)
|
|
|
|
___dtors_end = .;
|
|
|
|
__DTOR_END__ = .;
|
|
|
|
. = ALIGN(2);
|
|
|
|
_mdata = .;
|
|
|
|
} > ROM
|
|
|
|
.ustack 0x400: AT(0x200)
|
|
|
|
{
|
|
|
|
_ustack = .;
|
|
|
|
} > RAM
|
|
|
|
.istack 0x200: AT(0x200)
|
|
|
|
{
|
|
|
|
_istack = .;
|
|
|
|
} > RAM
|
|
|
|
.data 0x404: AT(_mdata)
|
|
|
|
{
|
|
|
|
_data = .;
|
|
|
|
*(.data)
|
|
|
|
*(.data.*)
|
|
|
|
*(D)
|
|
|
|
*(D_1)
|
|
|
|
*(D_2)
|
|
|
|
_edata = .;
|
|
|
|
} > RAM
|
|
|
|
.gcc_exc :
|
|
|
|
{
|
|
|
|
*(.gcc_exc)
|
|
|
|
} > RAM
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
_bss = .;
|
|
|
|
*(.bss)
|
|
|
|
*(.bss.**)
|
|
|
|
*(COMMON)
|
|
|
|
*(B)
|
|
|
|
*(B_1)
|
|
|
|
*(B_2)
|
|
|
|
_ebss = .;
|
|
|
|
_end = .;
|
|
|
|
} >RAM
|
|
|
|
.ofs1 0xFE7F5D40: AT(0xFE7F5D00)
|
|
|
|
{
|
|
|
|
KEEP(*(.ofs1))
|
|
|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