1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

ELFLoader should fail with an error message for unresolved symbols.

This commit is contained in:
Andreas Kling 2018-10-25 10:00:37 +02:00
parent ec1d16b307
commit 16f318408d
14 changed files with 80 additions and 24 deletions

View file

@ -201,6 +201,7 @@ Task* Task::create(const String& path, uid_t uid, gid_t gid, pid_t parentPID)
bool success = space.loadELF(move(elfData));
if (!success) {
delete t;
kprintf("Failure loading ELF %s\n", path.characters());
return nullptr;
}

Binary file not shown.

View file

@ -1,5 +1,7 @@
#pragma once
#include <AK/Compiler.h>
int kprintf(const char *fmt, ...);
int ksprintf(char* buf, const char *fmt, ...);