mirror of
https://github.com/Maschell/libutils.git
synced 2024-11-06 13:15:08 +01:00
f02d7da869
Remove some features (kernel, function patcher) to be a userland only lib.
25 lines
540 B
C
25 lines
540 B
C
#ifndef __ELF_UTILS_H_
|
|
#define __ELF_UTILS_H_
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <coreinit/debug.h>
|
|
#include <coreinit/cache.h>
|
|
|
|
unsigned int elf_get_section(unsigned char *data, const char *name, unsigned int * size, unsigned int * addr, int fail_on_not_found);
|
|
|
|
bool elf_copy_section(unsigned char * elf_data, const char * section_name, bool errorOnFailure);
|
|
|
|
u32 elf_copy_common_sections(unsigned char * elf_data);
|
|
|
|
u32 elf_get_entry_addr(unsigned char * elf_data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __ELF_UTILS_H_
|