Files
net/exec/elf.h
2026-01-06 15:51:03 -08:00

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);