mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-25 00:57:49 +08:00
26 lines
573 B
Plaintext
26 lines
573 B
Plaintext
|
ENTRY(Reset_Handler);
|
||
|
MEMORY {
|
||
|
flash(rx) : ORIGIN = 0x00000000, LENGTH = 1024k
|
||
|
sram(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
|
||
|
}
|
||
|
_estack = ORIGIN(sram) + LENGTH(sram);
|
||
|
|
||
|
SECTIONS {
|
||
|
.vectors : { FILL(256) KEEP(*(.vectors)) } > flash
|
||
|
.text : { *(.text*) } > flash
|
||
|
.rodata : { *(.rodata*) } > flash
|
||
|
|
||
|
.data : {
|
||
|
_sdata = .;
|
||
|
*(.first_data)
|
||
|
*(.data SORT(.data.*))
|
||
|
_edata = .;
|
||
|
} > sram AT > flash
|
||
|
_sidata = LOADADDR(.data);
|
||
|
|
||
|
.bss : { _sbss = .; *(.bss SORT(.bss.*) COMMON) _ebss = .; } > sram
|
||
|
|
||
|
. = ALIGN(8);
|
||
|
_end = .;
|
||
|
}
|