Make sure the code won't continue after exit syscall

This commit is contained in:
Alex 2023-03-20 20:28:41 +02:00
parent 0b510e10f0
commit 1062aed6d7
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -367,6 +367,8 @@ void (*ELF_LAZY_RESOLVE_MAIN(struct LibAddressCollection *Info, long RelIndex))(
PrintNL(" not found"); PrintNL(" not found");
int ExitCode = 0x51801; int ExitCode = 0x51801;
syscall1(_Exit, ExitCode); syscall1(_Exit, ExitCode);
while (1) // Make sure we don't return
;
__builtin_unreachable(); __builtin_unreachable();
} }