3 * @brief Operations offered by libelfu on libelf handles
7 * - Post-processing for ELF specification compliance
10 #ifndef __LIBELFU_ELFOPS_H_
11 #define __LIBELFU_ELFOPS_H_
16 #include <libelfu/types.h>
20 * @brief Perform a large array of sanity checks.
21 * @param e libelf handle to file to be checked.
22 * @result 0 if successful.
23 * Anything else indicates an error.
24 * @note If a file does not pass these checks,
25 * then it cannot be processed by libelfu.
27 int elfu_eCheck(Elf *e);
32 * @brief Reorder PHDRs to comply with ELF specification.
33 * @param e libelf handle to file to be post-processed.
35 void elfu_eReorderPhdrs(Elf *e);