Skip to content

Commit

Permalink
lone: declare main function prototype in header
Browse files Browse the repository at this point in the history
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
matheusmoreira committed Nov 11, 2023
1 parent 0c05f38 commit 1374761
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <linux/unistd.h>

#include <lone/lone.h>

/**
*
* initial stack layout - logical
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <linux/unistd.h>

#include <lone/lone.h>

/**
*
* initial stack layout - logical
Expand Down
6 changes: 6 additions & 0 deletions include/lone.h
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 */

0 comments on commit 1374761

Please sign in to comment.