mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
Launching an arbitrary ELF executable from disk works! :^)
This is so cool! It's a bit messy now with two Task constructors, but eventually they should fold into a single constructor somehow.
This commit is contained in:
parent
befeabd8fe
commit
b824f15619
Notes:
sideshowbarker
2024-07-19 18:45:05 +09:00
Author: https://github.com/awesomekling
Commit: b824f15619
10 changed files with 141 additions and 16 deletions
|
@ -5,7 +5,9 @@ extern "C" int main(int, char**);
|
|||
extern "C" int _start()
|
||||
{
|
||||
// FIXME: Pass appropriate argc/argv.
|
||||
main(0, nullptr);
|
||||
int status = main(0, nullptr);
|
||||
|
||||
Syscall::invoke(Syscall::PosixExit, status);
|
||||
|
||||
// Birger's birthday <3
|
||||
return 20150614;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue