From 28f540f45bbacd939bfd07f213bcad2bf730b1bf Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 18 Feb 1995 01:27:10 +0000 Subject: initial import --- sysdeps/stub/start.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sysdeps/stub/start.c (limited to 'sysdeps/stub/start.c') diff --git a/sysdeps/stub/start.c b/sysdeps/stub/start.c new file mode 100644 index 0000000000..b8bb04bbb4 --- /dev/null +++ b/sysdeps/stub/start.c @@ -0,0 +1,16 @@ +/* This file should define the low-level program entry point, + which should set up `__environ', and then do: + __libc_init(argc, argv, __environ); + exit(main(argc, argv, __environ)); + + This file should be prepared to be the first thing in the text section (on + Unix systems), or otherwise appropriately special. */ + +volatile int errno; + +#ifndef HAVE_GNU_LD +#undef environ +#define __environ environ +#endif + +char **__environ; -- cgit v1.2.1