2022-10-01 12:15:56 +02:00
|
|
|
#pragma once
|
2022-10-12 18:23:52 +02:00
|
|
|
#include "fs/VFS.h"
|
2022-10-07 17:54:05 +02:00
|
|
|
#include "sys/elf/Image.h"
|
2022-10-01 12:15:56 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace ELFLoader
|
|
|
|
{
|
2022-10-12 18:37:00 +02:00
|
|
|
ELFImage* load_elf_from_vfs(VFS::Node* node); // This function assumes check_elf_image has been called first.
|
2022-10-11 19:33:48 +02:00
|
|
|
ELFImage* load_elf_from_filesystem(const char* filename);
|
2022-10-12 17:08:17 +02:00
|
|
|
void release_elf_image(ELFImage* image);
|
2022-10-12 19:20:14 +02:00
|
|
|
long check_elf_image(VFS::Node* node);
|
|
|
|
long check_elf_image_from_filesystem(const char* filename);
|
2022-10-01 12:15:56 +02:00
|
|
|
}
|