mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
Okay, with some mucking around, there is now a /bin/id and it runs!
It statically links against everything in LibC that it needs. This will work just fine for a long time to come!
This commit is contained in:
@@ -150,14 +150,14 @@ static void init_stage2()
|
||||
|
||||
#ifdef TEST_ELF_LOADER
|
||||
{
|
||||
auto testExecutable = vfs->open("/_test.o");
|
||||
auto testExecutable = vfs->open("/bin/id");
|
||||
ASSERT(testExecutable);
|
||||
auto testExecutableData = testExecutable->readEntireFile();
|
||||
ASSERT(testExecutableData);
|
||||
|
||||
ExecSpace space;
|
||||
space.loadELF(move(testExecutableData));
|
||||
auto* elf_entry = space.symbolPtr("elf_entry");
|
||||
auto* elf_entry = space.symbolPtr("_start");
|
||||
ASSERT(elf_entry);
|
||||
|
||||
typedef int (*MainFunctionPtr)(void);
|
||||
|
||||
Reference in New Issue
Block a user