about summary refs log tree commit diff
path: root/sysdeps/stub
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-06-13 19:43:57 +0000
committerRoland McGrath <roland@gnu.org>1995-06-13 19:43:57 +0000
commit0e7725ccd887d057727d68b2a0c00999d2308659 (patch)
treebdbfac33e4f42cc45560a92c3988656da0a3d0dc /sysdeps/stub
parentbddb308102180f10ddba007e9aa552757123e666 (diff)
downloadglibc-0e7725ccd887d057727d68b2a0c00999d2308659.tar.gz
glibc-0e7725ccd887d057727d68b2a0c00999d2308659.tar.xz
glibc-0e7725ccd887d057727d68b2a0c00999d2308659.zip
Don't include <hurd.h>. [PIC] (soinit): Renamed to (global) _init.
Diffstat (limited to 'sysdeps/stub')
-rw-r--r--sysdeps/stub/init-first.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/stub/init-first.c b/sysdeps/stub/init-first.c
index 9f4b010f52..de803fadd0 100644
--- a/sysdeps/stub/init-first.c
+++ b/sysdeps/stub/init-first.c
@@ -17,15 +17,11 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 Cambridge, MA 02139, USA.  */
 
-#include <hurd.h>
 #include <unistd.h>
 
 extern void __libc_init (int, char **, char **);
 
 #ifdef PIC
-static void soinit (int argc, char *arg0, ...)
-     __attribute__ ((unused, section (".init")));
-
 void
 __libc_init_first (void)
 {
@@ -33,7 +29,11 @@ __libc_init_first (void)
 #endif
 
 #ifdef PIC
-static void soinit 
+/* NOTE!  The linker notices the magical name `_init' and sets the DT_INIT
+   pointer in the dynamic section based solely on that.  It is convention
+   for this function to be in the `.init' section, but the symbol name is
+   the only thing that really matters!!  */
+void _init
 #else
 void __libc_init_first
 #endif