diff --git a/cpu/cortexm_common/ldscripts/cortexm_base.ld b/cpu/cortexm_common/ldscripts/cortexm_base.ld
index f97a9babde042703f320f589998e0e0e68f2ad0f..3c3389e8ad25eace7bb672f5fce5f5e93afa2fcc 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) :