Relocatable module

I would like to create a C-code module that will contain several functions.
It should be R/W and R/O independent and at the beginning it should contain
a table which will hold offsets of the contained functions relative to the
table start. This way I can load the module into an arbitrary RAM location
and call functions indirectly through that table. I tried several approaches,
but never managed to get it linked without errors...

regards

Dejan

Parents Reply Children
More questions in this forum