Re: [arm-gnu] not a gnu question per se, but related (linker script help)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] not a gnu question per se, but related (linker script help)



On Friday 30 April 2010 01:34:31 am 42Bastian wrote:
> > Good evening,
> :-) Depends, morning here in Germany.

:-)

> I would do the following:
> 1) Place all shared functions at the end of the bootloader section
> 2) Create a table of addresses at a well know place. (Either linker, or a
> small assembly file).
> 3) In you application, let a function-pointer array point to this place.
> 4) Call the functions via function pointers.

Indeed. After struggling with jump tables and considering the fact that the 
functions have differing numbers of arguments, I think this is the only sane 
way to do it. Thanks!

-A.