mirror of git://sourceware.org/git/glibc.git
Fix dl-load.c for [!_LIBC_REENTRANT] case.
This commit is contained in:
parent
601c888b2f
commit
4b4f2771c2
|
@ -1,5 +1,8 @@
|
||||||
2012-08-15 Roland McGrath <roland@hack.frob.com>
|
2012-08-15 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
|
||||||
|
check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
|
||||||
|
|
||||||
* bits/libc-lock.h (__rtld_lock_initialize): New macro.
|
* bits/libc-lock.h (__rtld_lock_initialize): New macro.
|
||||||
|
|
||||||
* elf/dl-sym.c: Include <stdlib.h>.
|
* elf/dl-sym.c: Include <stdlib.h>.
|
||||||
|
|
|
@ -1194,9 +1194,11 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
|
||||||
was executed directly. The setup will happen later. */
|
was executed directly. The setup will happen later. */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
# ifdef _LIBC_REENTRANT
|
||||||
/* In a static binary there is no way to tell if we dynamically
|
/* In a static binary there is no way to tell if we dynamically
|
||||||
loaded libpthread. */
|
loaded libpthread. */
|
||||||
if (GL(dl_error_catch_tsd) == &_dl_initial_error_catch_tsd)
|
if (GL(dl_error_catch_tsd) == &_dl_initial_error_catch_tsd)
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* We have not yet loaded libpthread.
|
/* We have not yet loaded libpthread.
|
||||||
|
|
Loading…
Reference in New Issue