26 lines
505 B
Plaintext
Raw Normal View History

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