This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: How to load and execute COFF file



You will either need to write a custom loader (this is not too difficult, COFF is a pretty simple format), or have your code move itself to the proper place in memory.

The plan is to write a loader, or rather, to modify an existing one. I'm just wondering what it needs to do, apart from obvious stuff like actually writing the data to memory.



You may also compile with the "-oformat binary" option to generate binary image (that will still need to be moved to the right place in memory).

Possibly a stupid question, but what would the right place in memory be?


- 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


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