37,6 → 37,7 |
|
#include <bool.h> |
#include <elf_dyn.h> |
#include <arch/dynamic.h> |
|
/** |
* Holds the data extracted from an ELF Dynamic section. |
45,7 → 46,7 |
* to their final run-time values by adding the load bias |
* and indices into the symbol table are converted to pointers. |
*/ |
typedef struct { |
typedef struct dyn_info { |
/** Type of relocations used for the PLT, either DT_REL or DT_RELA */ |
int plt_rel; |
|
92,9 → 93,13 |
|
/** Pointer to the module's dynamic section */ |
elf_dyn_t *dynamic; |
|
/** Architecture-specific info. */ |
dyn_info_arch_t arch; |
} dyn_info_t; |
|
void dynamic_parse(elf_dyn_t *dyn_ptr, size_t bias, dyn_info_t *info); |
void dyn_parse_arch(elf_dyn_t *dp, size_t bias, dyn_info_t *info); |
|
#endif |
|