about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-23 20:50:24 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-23 20:50:24 +0100
commite0cfa51064489fdff85953bad1e0f3c42e093662 (patch)
tree37adab9a8b8a92bb2287fae7993e729587ca0584 /sysdeps
parent34d97d87bb1c08e34d08a9d4be24a3b1d53a4ddb (diff)
downloadglibc-e0cfa51064489fdff85953bad1e0f3c42e093662.tar.gz
glibc-e0cfa51064489fdff85953bad1e0f3c42e093662.tar.xz
glibc-e0cfa51064489fdff85953bad1e0f3c42e093662.zip
hurd: Fix dlopening libraries from static programs
dlopening libraries from a static program would dlopen libc.so,
which thus needs its own initialization, done in posixland_init,
which was missing initializing RPCs so far.

ChangeLog:

2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
	__mach_init in dlopened libc.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index fc355ed6c3..3bcffd985f 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -72,6 +72,11 @@ posixland_init (int argc, char **argv, char **envp)
       /* Set the FPU control word to the proper default value.  */
       __setfpucw (__fpu_control);
     }
+  else
+    {
+      /* Initialize data structures so the additional libc can do RPCs.  */
+      __mach_init ();
+    }
 
   /* Save the command-line arguments.  */
   __libc_argc = argc;