How to load and execute COFF file

Toralf Lund toralf@procaptura.com
Fri Sep 12 19:42:00 GMT 2003


On 2003.09.12 18:56, Bill Gatliff wrote:
> Toralf:
> 
> 
> If the target runs gdbstubs, then you could download and launch the 
> COFF file with gdb.
It doesn't. It runs nothing as all, really, except for a very simple 
"bug rom" routine. That routine may be instructed via an externally 
generated interrupt to jump to a certain memory location, though, 
typically after the code has been written to the unit's memory by 
another board (it has dual-port RAM.)

Essentially what I'm asking is how do I find the jump address, and do I 
have to do special relocation operations or anything before entering it?
> 
> b.g.
> 
> 
> Toralf Lund wrote:
> 
>> I think I mentioned this earlier, but another question that will be 
>> coming up, is how to load and execute a (m68k) COFF file without an 
>> OS. With the OS-9 module format that I am used to, I would just load 
>> the module at specific address, extract an "execution offset" from 
>> the module header and add it to the load address, and jump to to the 
>> resulting address. I imagine that with COFF (or ELF, which is of 
>> course an alternative, too), it will be slightly more complex. Any 
>> information on how to do it would be appreciated.
>> 
>> - Toralf
>> 
>> 
>> 
>> ------
>> Want more information?  See the CrossGCC FAQ, 
>> http://www.objsw.com/CrossGCC/
>> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.
>> redhat.com
>> 
> 
>-- 
> Bill Gatliff
> GNU-based embedded development, training and consulting services.
> bgat@billgatliff.com
> 
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, 
> http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.
> redhat.com
> 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list