mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
28 lines
538 B
Plaintext
28 lines
538 B
Plaintext
ENTRY(Reset_Handler);
|
|
|
|
MEMORY {
|
|
flash(rx) : ORIGIN = 0x00000000, LENGTH = 4M
|
|
sram(rwx) : ORIGIN = 0x20000000, LENGTH = 4M
|
|
}
|
|
|
|
_estack = ORIGIN(sram) + LENGTH(sram);
|
|
|
|
SECTIONS {
|
|
.vectors : { KEEP(*(.isr_vector)) } > flash
|
|
.text : { *(.text* .text.*) } > flash
|
|
.rodata : { *(.rodata*) } > flash
|
|
|
|
.data : {
|
|
_sdata = .;
|
|
*(.data SORT(.data.*))
|
|
_edata = .;
|
|
} > sram AT > flash
|
|
_sidata = LOADADDR(.data);
|
|
|
|
.bss : { _sbss = .; *(.bss SORT(.bss.*) COMMON) _ebss = .; } > sram
|
|
|
|
. = ALIGN(8);
|
|
_end = .;
|
|
end = .;
|
|
}
|