diff --git a/cpu/cortexm_common/ldscripts/cortexm_base.ld b/cpu/cortexm_common/ldscripts/cortexm_base.ld index c05affdc5f1a..1ed11d22445a 100644 --- a/cpu/cortexm_common/ldscripts/cortexm_base.ld +++ b/cpu/cortexm_common/ldscripts/cortexm_base.ld @@ -108,15 +108,15 @@ SECTIONS /* stack section */ .stack (NOLOAD): { + _puf_sram_len = DEFINED(_puf_sram_len) ? _puf_sram_len : 0 ; + KEEP (*(.puf_stack)) + . = ALIGN(_puf_sram_len); + _pstack = .; . = ALIGN(8); _sstack = .; KEEP (*(.isr_stack)) . = ALIGN(8); _estack = .; - _puf_sram_len = DEFINED(_puf_sram_len) ? _puf_sram_len : 0 ; - KEEP (*(.puf_stack)) - . = ALIGN(_puf_sram_len); - _pstack = .; } > ram .relocate :