mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-24 16:50:14 +08:00
30 lines
626 B
Plaintext
30 lines
626 B
Plaintext
|
ENTRY(Reset_Handler);
|
||
|
MEMORY {
|
||
|
flash(rx) : ORIGIN = 0x08000000, LENGTH = 2048k
|
||
|
sram(rwx) : ORIGIN = 0x24000000, LENGTH = 512k
|
||
|
}
|
||
|
_estack = ORIGIN(sram) + LENGTH(sram); /* stack points to end of SRAM */
|
||
|
|
||
|
SECTIONS {
|
||
|
.vectors : { KEEP(*(.isr_vector)) } > flash
|
||
|
.text : { *(.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 = .;
|
||
|
}
|