ELF, COFF

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
crg

ELF, COFF

Post by crg »

hello..

could anyone tell me what should I do if I want to load ELF/COFF into memory..? or refer a good document about this?

thx.
carbonBased

RE:ELF, COFF

Post by carbonBased »

Look to www.wotsit.org, and search for "elf" or "coff."  Their should be documentation for each of these object formats here.

The basic steps involve loading the binary into memory, performing run-time linking, and jumping to the entry point.

The first and last parts are easy... it's the middle part that's difficult.  There's a code example in the nasm source distribution on how it's done with the RDOFF object format... it might be a good place to start (at least to see how it's done with a simple object format).

Jeff
Post Reply