rongz
asked on
access ELF header
Hi,
can somebody show me an exmaple how to read elf head in a elf file? Thanks.
can somebody show me an exmaple how to read elf head in a elf file? Thanks.
ASKER
no, I mean how to access ELF header (e.g. retrieve information encoded in ELF header) in an ELF format file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you mean read the contents of the executable in the executable?
If you are using C, fopen it (argv[0]) and use fread to read until EOF .... That should suffice
Cheers!
sunnycoder