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.
ELF, COFF
RE:ELF, COFF
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
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