From a6b4ae7738ac7a99ef11a77816ffee95bf5a1cbf Mon Sep 17 00:00:00 2001 From: Jason Yosinski Date: Tue, 20 Dec 2022 11:27:08 -0800 Subject: [PATCH] Added .ramfunc attribute to linker script to enable keeping functions in RAM. --- .../feather_m4/linker_scripts/gcc/flash_with_bootloader.ld | 4 ++++ 1 file changed, 4 insertions(+) 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 */