Luna/kernel/include/sys/elf/ELFLoader.h
apio 261fc73146 ELFLoader: Read the ELF file header by header using the VFS
Instead of just allocating one big redundant blob of memory and reading into it, then having to free it...
2022-10-12 18:23:52 +02:00

11 lines
261 B
C++

#pragma once
#include "fs/VFS.h"
#include "sys/elf/Image.h"
#include <stdint.h>
namespace ELFLoader
{
ELFImage* load_elf_from_vfs(VFS::Node* node);
ELFImage* load_elf_from_filesystem(const char* filename);
void release_elf_image(ELFImage* image);
}