From c3c5f1e5fe27574220c3e94a79048e066cacc121 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Thu, 20 Oct 2016 23:43:29 +0100 Subject: Init commit --- layout.ld | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 layout.ld (limited to 'layout.ld') diff --git a/layout.ld b/layout.ld new file mode 100644 index 0000000..7431496 --- /dev/null +++ b/layout.ld @@ -0,0 +1,38 @@ +MEMORY { + FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256K + RAM (rw!x) : ORIGIN = 0x1FFF8000, LENGTH = 64K +} + +SECTIONS { + . = 0x00000000; + .text : { + KEEP(*(.vectors)) + . = 0x400; + KEEP(*(.flashconfig*)) + *(.startup*) + *(.text*) + *(.rodata*) + . = ALIGN(4); + } > FLASH + + .data : { + . = ALIGN(4); + _sflashdata = LOADADDR(.data); + _sdata = .; + *(.fastrun*) + *(.data*) + . = ALIGN(4); + _edata = .; + } > RAM AT > FLASH + + .bss : { + . = ALIGN(4); + _sbss = .; + *(.bss*) + *(COMMON) + . = ALIGN(4); + _ebss = .; + } > RAM + + _estack = ORIGIN(RAM) + LENGTH(RAM); +} -- cgit v1.2.3-54-g00ecf