about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/Makefile5
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c14
2 files changed, 18 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile
index c33cb7d5fe..fa2f66ac5f 100644
--- a/sysdeps/mach/hurd/Makefile
+++ b/sysdeps/mach/hurd/Makefile
@@ -18,7 +18,12 @@
 
 ifdef in-Makerules
 
+# This should be in a more global place, because the problem it solves
+# is universal, but this is good enough for here.
+rtld-installed-name := ld.so$(libc.so-version)
+
 subdirs := $(filter-out sunrpc,$(subdirs)) # XXX skip broken dirs
+# See hurd/Makefile for commands that install some crucial sunrpc headers.
 
 # Look for header files in hurd/ under the top-level library source directory.
 # Look for generated header files where they get created.
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index 5203b4c146..331362370b 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -1,5 +1,5 @@
 /* Initialization code run first thing by the ELF startup code.  For i386/Hurd.
-Copyright (C) 1995 Free Software Foundation, Inc.
+Copyright (C) 1995, 1996 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -248,3 +248,15 @@ __libc_init_first (int argc __attribute__ ((unused)), ...)
   _hurd_startup ((void **) &argc, &doinit);
 #endif
 }
+
+
+/* This function is defined here so that if this file ever gets into
+   ld.so we will get a link error.  Having this file silently included
+   in ld.so causes disaster, because the _init definition above will
+   cause ld.so to gain an init function, which is not a cool thing. */
+
+void 
+_dl_start () 
+{ 
+  abort (); 
+}