summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/csu/crt0.c3
-rw-r--r--lib/csu/extern.h7
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c
index 3f65c673baa..0e8c7a5f5ee 100644
--- a/lib/csu/crt0.c
+++ b/lib/csu/crt0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt0.c,v 1.9 2017/01/19 23:47:04 guenther Exp $ */
+/* $OpenBSD: crt0.c,v 1.10 2017/01/21 04:14:19 guenther Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -38,6 +38,7 @@
#ifdef MD_RCRT0_START
#include "boot.h"
#endif
+#include "extern.h"
/* some defaults */
#ifndef MD_START_ARGS
diff --git a/lib/csu/extern.h b/lib/csu/extern.h
index 775438fde0c..d2087e0fa4e 100644
--- a/lib/csu/extern.h
+++ b/lib/csu/extern.h
@@ -13,12 +13,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-struct ps_strings;
-extern void ___start(int argc, char **argv, char **envp, void (*cleanup)(void),
- const void *obj, struct ps_strings *ps_strings);
-extern void __init(void);
-extern int main(int argc, char *argv[], char *envp[]);
+void __init(void) __dso_hidden;
+int main(int argc, char *argv[], char *envp[]);
typedef void (*init_f)(void);