diff options
author | norly <ny-git@enpas.org> | 2013-01-25 15:24:36 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-02-11 01:24:36 +0000 |
commit | d9eb4398773cbda1dc185f4cf7b1b0e4cb9fb135 (patch) | |
tree | a2421aa140b17db64df439f894fa892833e3ac96 /include/elfhandle.h | |
parent | 43e69328d849391abfed996214eed1dca49b3ac3 (diff) |
Print ELF header/segments/sections
Diffstat (limited to 'include/elfhandle.h')
-rw-r--r-- | include/elfhandle.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/elfhandle.h b/include/elfhandle.h new file mode 100644 index 0000000..b1a92ea --- /dev/null +++ b/include/elfhandle.h @@ -0,0 +1,15 @@ +#ifndef __ELFHANDLE_H__ +#define __ELFHANDLE_H__ + +#include <libelf.h> + +typedef struct { + int fd; + Elf *e; +} ELFHandles; + + +void openElf(ELFHandles *h, char *fn, Elf_Cmd elfmode); +void closeElf(ELFHandles *h); + +#endif |