mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
Make sure the code won't continue after exit syscall
This commit is contained in:
parent
0b510e10f0
commit
1062aed6d7
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user