There is a HAL library of functions for working with flash memory. I want all the functions of this library to work from RAM. How can I do this correctly, without writing _attribute_((section(".RamFunc"))) before each function? And without making any changes to the standard library at all.
It seems to me that the standard library should support such a setting. But I don't know any other techniques, except adding an _attribute_((section(".RamFunc"))) before the functions. I don't like making changes to the standard library file either.
Should the linker maybe be told to place all the functions from this file in RAM?
So far I've only added _attribute_((section(".RamFunc"))).