mongoose/examples/stm32/nucleo-h563zi-make-baremetal-builtin/link.ld

31 lines
637 B
Plaintext
Raw Normal View History

2023-08-18 23:06:08 +08:00
ENTRY(Reset_Handler);
MEMORY {
flash(rx) : ORIGIN = 0x08000000, LENGTH = 2048k
sram(rwx) : ORIGIN = 0x20000000, LENGTH = 640k
}
_estack = ORIGIN(sram) + LENGTH(sram); /* End of RAM. stack points here */
2023-08-18 23:06:08 +08:00
SECTIONS {
.vectors : { KEEP(*(.isr_vector)) } > flash
.text : { *(.text* .text.*) } > flash
.rodata : { *(.rodata*) } > flash
.data : {
_sdata = .;
2023-08-18 23:06:08 +08:00
*(.first_data)
*(.ram)
2023-08-18 23:06:08 +08:00
*(.data SORT(.data.*))
_edata = .;
2023-08-18 23:06:08 +08:00
} > sram AT > flash
_sidata = LOADADDR(.data);
.bss : {
_sbss = .;
2023-08-18 23:06:08 +08:00
*(.bss SORT(.bss.*) COMMON)
_ebss = .;
2023-08-18 23:06:08 +08:00
} > sram
. = ALIGN(8);
_end = .;
2023-08-18 23:06:08 +08:00
}