From b8d6bcdb0774628ec7ee0ee58a76bf3b600d76cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Sun, 6 May 2018 07:22:06 +0200 Subject: [PATCH] cortexm_common: specify load segment instead of load address for .data --- cpu/cortexm_common/ldscripts/cortexm_base.ld | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cortexm_common/ldscripts/cortexm_base.ld b/cpu/cortexm_common/ldscripts/cortexm_base.ld index f97a9babde..3c3389e8ad 100644 --- a/cpu/cortexm_common/ldscripts/cortexm_base.ld +++ b/cpu/cortexm_common/ldscripts/cortexm_base.ld @@ -115,7 +115,7 @@ SECTIONS _estack = .; } > ram - .relocate : AT (_etext) + .relocate : { . = ALIGN(4); _srelocate = .; @@ -124,7 +124,7 @@ SECTIONS KEEP (*(.openocd .openocd.*)) . = ALIGN(4); _erelocate = .; - } > ram + } > ram AT> rom /* .bss section which is used for uninitialized data */ .bss (NOLOAD) : -- GitLab