11 lines
384 B
C
11 lines
384 B
C
#pragma once
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
/* Load an ELF image located in memory and return the runtime entry
|
|
* address (absolute). The loader supports 32-bit (ELFCLASS32) i386
|
|
* shared objects (ET_DYN) and simple relocation types (R_386_RELATIVE).
|
|
* The ELF is located entirely in memory (no disk access). Returns 0 on
|
|
* error.
|
|
*/
|
|
uintptr_t ElfLoad(void *elf_image); |