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