-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lone: declare main function prototype in header
Use it in the architecture-specific entry point files. Hopefully will fix the GCC linker errors. Why can clang link it just fine while GCC fails?
- Loading branch information
1 parent
0c05f38
commit 1374761
Showing
3 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
#include <linux/unistd.h> | ||
|
||
#include <lone/lone.h> | ||
|
||
/** | ||
* | ||
* initial stack layout - logical | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
#include <linux/unistd.h> | ||
|
||
#include <lone/lone.h> | ||
|
||
/** | ||
* | ||
* initial stack layout - logical | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#ifndef LONE_HEADER | ||
#define LONE_HEADER | ||
|
||
long lone(int argc, char **argv, char **envp, struct auxiliary *auxv); | ||
|
||
#endif /* LONE_HEADER */ |