]> wirehaze git hosting - stm32f411ceu6.git/blob - kernel.ld

wirehaze git hosting

-Os
[stm32f411ceu6.git] / kernel.ld
1 MEMORY
2 {
3 flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K
4 sram (rw) : ORIGIN = 0x20000000, LENGTH = 128K
5 }
6
7 _flash_start = ORIGIN(flash);
8 _flash_end = ORIGIN(flash) + LENGTH(flash);
9
10 _sram_start = ORIGIN(sram);
11 _sram_end = ORIGIN(sram) + LENGTH(sram);
12
13 SECTIONS
14 {
15 .vtbl :
16 {
17 *(.vtbl)
18 . = 0x400;
19 } >flash
20 .text :
21 {
22 *(.text*)
23 } >flash
24 .rodata :
25 {
26 . = ALIGN(4);
27 *(.rodata*)
28 . = ALIGN(4);
29 } >flash
30 .data :
31 {
32 . = ALIGN(4);
33 *(.data*)
34 . = ALIGN(4);
35 } >sram AT>flash
36 .bss :
37 {
38 . = ALIGN(4);
39 *(.bss*)
40 . = ALIGN(4);
41 } >sram
42 }
43
44 _data_vma_start = ADDR(.data);
45 _data_vma_end = ADDR(.data) + SIZEOF(.data);
46 _data_lma_start = LOADADDR(.data);
47
48 _bss_vma_start = ADDR(.bss);
49 _bss_vma_end = ADDR(.bss) + SIZEOF(.bss);