diff --git a/variants/feather_m4/linker_scripts/gcc/flash_with_bootloader.ld b/variants/feather_m4/linker_scripts/gcc/flash_with_bootloader.ld index 1bdea69ae..2c7e62a53 100644 --- a/variants/feather_m4/linker_scripts/gcc/flash_with_bootloader.ld +++ b/variants/feather_m4/linker_scripts/gcc/flash_with_bootloader.ld @@ -170,6 +170,10 @@ SECTIONS KEEP(*(.fini_array)) PROVIDE_HIDDEN (__fini_array_end = .); + . = ALIGN(4); + /* Keep .ramfunc functions in RAM */ + KEEP(*(.ramfunc)) + KEEP(*(.jcr*)) . = ALIGN(16); /* All data end */