From: Samuel Thibault Date: Sun, 23 Nov 2014 19:50:24 +0000 (+0100) Subject: hurd: Fix dlopening libraries from static programs X-Git-Tag: glibc-2.21~355 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0cfa51064489fdff85953bad1e0f3c42e093662;p=thirdparty%2Fglibc.git 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 * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call __mach_init in dlopened libc. --- diff --git a/ChangeLog b/ChangeLog index 0279091b493..0bde88ca376 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-23 Samuel Thibault + + * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call + __mach_init in dlopened libc. + 2014-11-22 Mike Frysinger * sysdeps/arm/preconfigure.ac: Delete EABI check. diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index fc355ed6c3e..3bcffd985ff 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;