mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:04:59 +00:00

It's now possible to load a .o file into the kernel via a syscall. The kernel will perform all the necessary ELF relocations, and then call the "module_init" symbol in the loaded module.
13 lines
224 B
C
13 lines
224 B
C
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/Vector.h>
|
|
#include <Kernel/KBuffer.h>
|
|
|
|
struct Module {
|
|
String name;
|
|
Vector<KBuffer> sections;
|
|
};
|
|
|
|
typedef void* (*ModuleInitPtr)();
|
|
typedef void* (*ModuleFiniPtr)();
|