1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef __ELFHANDLE_H__ #define __ELFHANDLE_H__ #include <libelf/libelf.h> typedef struct { int fd; Elf *e; } ELFHandles; void openElf(ELFHandles *h, char *fn, Elf_Cmd elfmode); void closeElf(ELFHandles *h); #endif