diff --git a/boot/src/ports/stm32/stm32.ld.S b/boot/src/ports/stm32/stm32.ld.S index db28f9d3f..316a412f5 100644 --- a/boot/src/ports/stm32/stm32.ld.S +++ b/boot/src/ports/stm32/stm32.ld.S @@ -90,5 +90,15 @@ SECTIONS _estack = .; } >RAM + .ram_function : ALIGN(4) + { + _ram_function_start = .; + *(.ram_function*) + . = ALIGN(4); + _ram_function_end = .; + } > RAM AT> ROM + + _ram_function_flash = LOADADDR(.ram_function); + .ARM.attributes 0 : { *(.ARM.attributes) } }