diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-28 15:27:26 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-28 15:27:26 -0700 |
commit | 654511788e24794c03ecb810a3b5907e95b8b55c (patch) | |
tree | dac80eb4e6cbe22c2a63b045d71bad03b8e02e77 | |
parent | 0ed233b879675929559fb413dd7e018d5aee26c3 (diff) | |
download | stm32l4-654511788e24794c03ecb810a3b5907e95b8b55c.tar.gz stm32l4-654511788e24794c03ecb810a3b5907e95b8b55c.tar.bz2 stm32l4-654511788e24794c03ecb810a3b5907e95b8b55c.zip |
Fixed another bug with the linker script.
Before this commit, the heap overlapped with the BSS, which predicatbly
broke everything once trying to use the heap.
-rw-r--r-- | linker/linker_script.ld | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linker/linker_script.ld b/linker/linker_script.ld index 8850182..f2a99ae 100644 --- a/linker/linker_script.ld +++ b/linker/linker_script.ld @@ -53,8 +53,6 @@ SECTIONS *(.noinit); - HEAP_START = .; - HEAP_STOP = LENGTH(sram1); } >sram1 AT>flash BSS_START = .; @@ -63,4 +61,7 @@ SECTIONS . = ALIGN(0x04); } > sram1 BSS_END = .; + + HEAP_START = .; + HEAP_STOP = ORIGIN(sram1) + LENGTH(sram1); } |