diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S index d0b90e5ada..e752fe9df7 100644 --- a/core/cortex-m/ec.lds.S +++ b/core/cortex-m/ec.lds.S @@ -68,7 +68,7 @@ SECTIONS } > SHARED_LIB #endif .text : { -#if defined(CONFIG_RO_HEAD_ROOM) +#if defined(SECTION_IS_RO) && defined(CONFIG_RO_HEAD_ROOM) . = . + CONFIG_RO_HEAD_ROOM; #endif OUTDIR/core/CORE/init.o (.text.vecttable)