I'm building a uClinux system to run on an NXP LPC2478. The chip has 512k on-board fast flash from which it can directly execute code. I want to load and run a user app out of regular external SDRAM. But I have a special graphics library that I would like to pre-load to execute out of the on board flash.
Is there a way to compile the graphics library to run at a fixed location in memory (the flash) and then compile/link the app that uses it to have all it's references to that library fixed to the appropriate locations in flash?
If I have to write a custom app loader that does the fix-ups manually, I'll do that.