This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C library calls at fixed ROM addresses

I need to write a small function running in XRAM that uses the C runtime library routines that are present in existing ROM code. I know the absolute locations of the library routines from the ROM link map. What is the syntax to force the BL51 linker to use these locations but not link in the code?

For example,
the internal multiply routine is at 0x17D8 in the ROM, common bank. I need to use this statement in a function:

 ...
 a = b * 5;
 ...

and I want the linker to LCALL 0x17D8 when it calls ?C?IMUL. This is running on a customized 80320 processor. I have specialized hardware that transfers control to XRAM when a selectable address in the ROM is about to be executed.

Thanks

0