mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:47:35 +00:00
LibC: Tell compiler about invisible call to _start
I'm not sure how else to handle this. Curiously, I can't find the string '_start' anywhere else in the project. Could it be that we haven't NIH'd this yet? And that we actually rely on magic from the compiler to call _start for us?
This commit is contained in:
parent
b493c6cd39
commit
9221a25bbc
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ extern void _init();
|
|||
extern char** environ;
|
||||
extern bool __environ_is_malloced;
|
||||
|
||||
// Tell the compiler that this may be called from somewhere else.
|
||||
int _start(int argc, char** argv, char** env);
|
||||
|
||||
int _start(int argc, char** argv, char** env)
|
||||
{
|
||||
environ = env;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue