This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] fix dl-load.c for [!_LIBC_REENTRANT] case
- From: Roland McGrath <roland at hack dot frob dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 15 Aug 2012 17:05:56 -0700 (PDT)
- Subject: [COMMITTED PATCH] fix dl-load.c for [!_LIBC_REENTRANT] case
* elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 43e1269..7bf0c12 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -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. */
break;
+# ifdef _LIBC_REENTRANT
/* In a static binary there is no way to tell if we dynamically
loaded libpthread. */
if (GL(dl_error_catch_tsd) == &_dl_initial_error_catch_tsd)
+# endif
#endif
{
/* We have not yet loaded libpthread.