blob: 33a68a3d66ea27420579b4efbbd44e3bac1a2df8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef __LIBELFU_MODELTYPES_H__
#define __LIBELFU_MODELTYPES_H__
#include <sys/queue.h>
#include <elf.h>
#include <gelf.h>
typedef struct ElfuScn {
GElf_Shdr shdr;
Elf_Data data;
CIRCLEQ_ENTRY(ElfuScn) elem;
} ElfuScn;
typedef struct ElfuPhdr {
GElf_Phdr phdr;
CIRCLEQ_ENTRY(ElfuPhdr) elem;
} ElfuPhdr;
typedef struct {
int elfclass;
GElf_Ehdr ehdr;
CIRCLEQ_HEAD(ScnList, ElfuScn) scnList;
CIRCLEQ_HEAD(PhdrList, ElfuPhdr) phdrList;
ElfuScn *shstrtab;
} ElfuElf;
#endif
|