2021-05-12 01:05:03 +08:00
|
|
|
ENTRY(_reset);
|
2021-05-11 16:12:06 +08:00
|
|
|
MEMORY {
|
2021-05-13 21:56:14 +08:00
|
|
|
ram(rwx) : ORIGIN = 0x20000000, LENGTH = 320k
|
|
|
|
rom(rx) : ORIGIN = 0x08000000, LENGTH = 1024k
|
2021-05-11 16:12:06 +08:00
|
|
|
}
|
2021-05-13 21:56:14 +08:00
|
|
|
_estack = 0x20000000 + 320k;
|
2021-05-11 16:12:06 +08:00
|
|
|
SECTIONS {
|
|
|
|
.text : { *(.text*) } > rom
|
|
|
|
.rodata : { *(.rodata*) } > rom
|
|
|
|
|
|
|
|
.bss : {
|
2021-05-14 05:03:46 +08:00
|
|
|
__bss_start__ = .;
|
2021-05-11 16:12:06 +08:00
|
|
|
*(.bss SORT(.bss.*) COMMON)
|
2021-05-14 05:03:46 +08:00
|
|
|
__bss_end__ = .;
|
2021-05-11 16:12:06 +08:00
|
|
|
} > ram
|
|
|
|
|
|
|
|
.data : {
|
|
|
|
_data_start = .;
|
|
|
|
*(.data SORT(.data.*))
|
|
|
|
_data_end = .;
|
|
|
|
} > ram AT > rom
|
|
|
|
_data_flash_start = LOADADDR(.data);
|
|
|
|
}
|
2021-05-14 05:03:46 +08:00
|
|
|
__end__ = _data_end;
|
|
|
|
end = _data_end;
|