summaryrefslogtreecommitdiff
path: root/gcc_nrf52-mcuboot.ld
diff options
context:
space:
mode:
authorTim Keller <geekboy1011@gmail.com>2021-08-19 00:14:42 (GMT)
committerTim Keller <geekboy1011@gmail.com>2021-08-19 00:14:42 (GMT)
commit16502b788f19458b472de74173d92f01aba30b5f (patch)
tree5866f7d22966623f3523b4b510eaeffc4b2ce765 /gcc_nrf52-mcuboot.ld
parent55f8908769aab970413b249cb26acdaf22c79ada (diff)
Add MCUBOOT linker changes
use better linker constant names
Diffstat (limited to 'gcc_nrf52-mcuboot.ld')
-rw-r--r--gcc_nrf52-mcuboot.ld12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc_nrf52-mcuboot.ld b/gcc_nrf52-mcuboot.ld
index 0746f49..b1413f1 100644
--- a/gcc_nrf52-mcuboot.ld
+++ b/gcc_nrf52-mcuboot.ld
@@ -3,14 +3,24 @@
SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)
+NOINIT_SIZE = 0x100;
+RAM_SIZE = 64K;
+
MEMORY
{
FLASH (rx) : ORIGIN = 0x08020, LENGTH = 0x78000
- RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x10000
+ RAM (rwx) : ORIGIN = 0x20000000, LENGTH = RAM_SIZE - NOINIT_SIZE
+ NOINIT (rwx): ORIGIN = ORIGIN(RAM) + LENGTH(RAM), LENGTH = NOINIT_SIZE
}
SECTIONS
{
+ noinit (NOLOAD):
+ {
+ PROVIDE(__start_noinit_data = .);
+ KEEP(*(.noinit))
+ PROVIDE(__stop_noinit_data = .);
+ } >NOINIT
}
SECTIONS