2021-05-12 01:05:03 +08:00
|
|
|
ENTRY(_reset);
|
2021-05-11 16:12:06 +08:00
|
|
|
MEMORY {
|
2021-05-12 01:05:03 +08:00
|
|
|
ram(rwx) : ORIGIN = 0x20000000, LENGTH = RAM_SIZE
|
|
|
|
rom(rx) : ORIGIN = 0x08000000, LENGTH = ROM_SIZE
|
2021-05-11 16:12:06 +08:00
|
|
|
}
|
2021-05-12 01:05:03 +08:00
|
|
|
_estack = 0x20000000 + RAM_SIZE;
|
2021-05-11 16:12:06 +08:00
|
|
|
SECTIONS {
|
|
|
|
.text : { *(.text*) } > rom
|
|
|
|
.rodata : { *(.rodata*) } > rom
|
|
|
|
|
|
|
|
.bss : {
|
|
|
|
_bss_start = .;
|
|
|
|
*(.bss SORT(.bss.*) COMMON)
|
|
|
|
_bss_end = .;
|
|
|
|
} > ram
|
|
|
|
|
|
|
|
.data : {
|
|
|
|
_data_start = .;
|
|
|
|
*(.data SORT(.data.*))
|
|
|
|
_data_end = .;
|
|
|
|
} > ram AT > rom
|
|
|
|
_data_flash_start = LOADADDR(.data);
|
|
|
|
}
|