mongoose/examples/ti/ek-tm4c1294xl-make-baremetal-builtin/link.ld

30 lines
774 B
Plaintext
Raw Normal View History

2023-03-03 03:47:09 +08:00
ENTRY(Reset_Handler);
2022-11-11 05:44:53 +08:00
MEMORY {
2023-03-03 03:47:09 +08:00
flash(rx) : ORIGIN = 0x00000000, LENGTH = 1024k
2022-11-11 05:44:53 +08:00
sram(rwx) : ORIGIN = 0x20000000, LENGTH = 256k
}
_estack = ORIGIN(sram) + LENGTH(sram); /* stack points to end of SRAM */
SECTIONS {
.vectors : { KEEP(*(.vectors)) } > flash
2023-03-03 03:47:09 +08:00
.text : { *(.text* .text.*) } > flash
2022-11-11 05:44:53 +08:00
.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() */
}