aboutsummaryrefslogtreecommitdiff
path: root/linker/linker_script.ld
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-08 14:18:02 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-08 14:18:02 -0700
commit2aaf2180aa352c71c43efd548893fffe506397e5 (patch)
treea2405c7c9bb78f749cacdfab678222d5511cb63b /linker/linker_script.ld
parent12845efe524e2262e19fcb1e85697c4664e22b2f (diff)
downloadstm32l4-2aaf2180aa352c71c43efd548893fffe506397e5.tar.gz
stm32l4-2aaf2180aa352c71c43efd548893fffe506397e5.tar.bz2
stm32l4-2aaf2180aa352c71c43efd548893fffe506397e5.zip
Fixed linker script on desktop
Diffstat (limited to 'linker/linker_script.ld')
-rw-r--r--linker/linker_script.ld6
1 files changed, 2 insertions, 4 deletions
diff --git a/linker/linker_script.ld b/linker/linker_script.ld
index bec8fb7..ea6fc8a 100644
--- a/linker/linker_script.ld
+++ b/linker/linker_script.ld
@@ -26,13 +26,11 @@ SECTIONS
. = ALIGN(0x04);
DATA_SEGMENT_START = .;
*(.data);
+ . = ALIGN(0x1c);
DATA_SEGMENT_STOP = .;
- /* INIT_ROUTINES_FLASH_START =
+ INIT_ROUTINES_FLASH_START =
LOADADDR(.data) + (DATA_SEGMENT_STOP - DATA_SEGMENT_START);
- */
- . = ALIGN(0x1c);
- INIT_ROUTINES_FLASH_START = .;
INITS_START = .;
*(.init0);
INIT_0_END = ABSOLUTE(INIT_ROUTINES_FLASH_START) + (. - INITS_START);