Relative Content

Tag Archive for assemblygcclinkerarmeabi

How can I get the GNU linker to generate farcall stubs to assembler functions?

I have an application targeting ARM Cortex M0+ MCU, written primarily in C++ but using a FPU library written in assembler. For performance reasons I need to run these functions in RAM, which means that when functions in flash memory call them it is necessary to use a farcall stub because the usual BL instruction can’t cover the address difference between flash and RAM. For calls to code compiled from C++ but assigned to RAM, the linker generates these stubs automatically. But for calls to the functions in my assembler file, it doesn’t.