2018-06-17 15:19:51 +02:00
|
|
|
#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);
|
|
|
|
|
2018-06-20 14:44:30 +02:00
|
|
|
BOOL elf_copy_section(unsigned char * elf_data, const char * section_name, BOOL errorOnFailure);
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-20 14:44:30 +02:00
|
|
|
uint32_t elf_copy_common_sections(unsigned char * elf_data);
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-20 14:44:30 +02:00
|
|
|
uint32_t elf_get_entry_addr(unsigned char * elf_data);
|
2018-06-17 15:19:51 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // __ELF_UTILS_H_
|