blob: 4c632e8516f9c699396293eb8631054150a7c2a7 (
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
|
#ifndef __LIBR_ELF_H
#define __LIBR_ELF_H
/* Handle ELF files */
#include <libelf.h>
#include <gelf.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _libr_file {
int fd_handle;
Elf *elf_handle;
size_t file_size;
libr_access_t access;
unsigned int version;
} libr_file;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
/* for a clean internal API */
typedef Elf_Scn libr_section;
typedef Elf_Data libr_data;
#endif /* __LIBR_ELF_H */
|