blob: dde51bcd9993c7904cd11392164131393b059a63 (
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
38
|
/*!
* @file elfops.h
* @brief Operations offered by libelfu on libelf handles
*
* This includes:
* - Checks
* - Post-processing for ELF specification compliance
*/
#ifndef __LIBELFU_ELFOPS_H_
#define __LIBELFU_ELFOPS_H_
#include <libelf.h>
#include <gelf.h>
#include <libelfu/types.h>
/*!
* @brief Perform a large array of sanity checks.
* @param e libelf handle to file to be checked.
* @result 0 if successful.
* Anything else indicates an error.
* @note If a file does not pass these checks,
* then it cannot be processed by libelfu.
*/
int elfu_eCheck(Elf *e);
/*!
* @brief Reorder PHDRs to comply with ELF specification.
* @param e libelf handle to file to be post-processed.
*/
void elfu_eReorderPhdrs(Elf *e);
#endif
|