mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
LibC: Tidy up _start a bit and rename compilation unit to "crt0"
This commit is contained in:
parent
1da261eeb6
commit
42342d2337
2 changed files with 5 additions and 7 deletions
|
@ -45,7 +45,7 @@ LIBC_OBJS = \
|
||||||
sys/socket.o \
|
sys/socket.o \
|
||||||
poll.o \
|
poll.o \
|
||||||
locale.o \
|
locale.o \
|
||||||
entry.o
|
crt0.o
|
||||||
|
|
||||||
ASM_OBJS = setjmp.no
|
ASM_OBJS = setjmp.no
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <stdlib.h>
|
||||||
#include <Kernel/Syscall.h>
|
|
||||||
#include <AK/StringImpl.h>
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
@ -26,15 +25,14 @@ int _start(int argc, char** argv, char** env)
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
syscall(SC_exit, status);
|
exit(status);
|
||||||
|
|
||||||
// Birger's birthday <3
|
|
||||||
return 20150614;
|
return 20150614;
|
||||||
}
|
}
|
||||||
|
|
||||||
[[noreturn]] void __cxa_pure_virtual()
|
[[noreturn]] void __cxa_pure_virtual()
|
||||||
{
|
{
|
||||||
ASSERT_NOT_REACHED();
|
assert(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue