mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-15 18:09:15 +08:00
30 lines
817 B
Plaintext
30 lines
817 B
Plaintext
|
ENTRY(_reset);
|
||
|
MEMORY {
|
||
|
flash(rx) : ORIGIN = 0x08000000, LENGTH = 2048k
|
||
|
sram(rwx) : ORIGIN = 0x20000000, LENGTH = 192k /* remaining 64k in a separate address space */
|
||
|
}
|
||
|
_estack = ORIGIN(sram) + LENGTH(sram); /* stack points to end of SRAM */
|
||
|
|
||
|
SECTIONS {
|
||
|
.vectors : { KEEP(*(.vectors)) } > flash
|
||
|
.text : { *(.text*) } > flash
|
||
|
.rodata : { *(.rodata*) } > flash
|
||
|
|
||
|
.data : {
|
||
|
_sdata = .; /* for init_ram() */
|
||
|
*(.first_data)
|
||
|
*(.data SORT(.data.*))
|
||
|
_edata = .; /* for init_ram() */
|
||
|
} > sram AT > flash
|
||
|
_sidata = LOADADDR(.data);
|
||
|
|
||
|
.bss : {
|
||
|
_sbss = .; /* for init_ram() */
|
||
|
*(.bss SORT(.bss.*) COMMON)
|
||
|
_ebss = .; /* for init_ram() */
|
||
|
} > sram
|
||
|
|
||
|
. = ALIGN(8);
|
||
|
_end = .; /* for cmsis_gcc.h and init_ram() */
|
||
|
}
|