Skip to content

Commit

Permalink
hurd: Fix dlopening libraries from static programs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Samuel Thibault committed Nov 23, 2014
1 parent 34d97d8 commit e0cfa51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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.

2014-11-22 Mike Frysinger <vapier@gentoo.org>

* sysdeps/arm/preconfigure.ac: Delete EABI check.
Expand Down
5 changes: 5 additions & 0 deletions sysdeps/mach/hurd/i386/init-first.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0cfa51

Please sign in to comment.