This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Linking to rom code symbols


On Thursday 12 November 2009 20:27:56 Fabrice Gautier wrote:
> I'm trying to find an efficient and convenient way to link a aplication
> to rom code.
> 
> The rom code is compiled as a rom.elf file.

presumably the ROM api is largely fixed, as is the address where it lives.  so 
create a header file that declares const function pointers with a fixed 
address.  then all your C code will simply call that address directly.

if your ROM doesnt have any sort of stable abi, i imagine you could write a 
script that converts the final linked addresses into a C header file.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]