aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-15 17:05:10 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-15 17:05:10 -0700
commit4b4f2771c217d7b038bcfc17c985ba057da554db (patch)
tree0ff9e7a20c64542169872437529f35a2afd120c5 /elf
parent601c888b2f3afc111911dd45717cd2718eac7f99 (diff)
downloadglibc-4b4f2771c217d7b038bcfc17c985ba057da554db.zip
glibc-4b4f2771c217d7b038bcfc17c985ba057da554db.tar.gz
glibc-4b4f2771c217d7b038bcfc17c985ba057da554db.tar.bz2
Fix dl-load.c for [!_LIBC_REENTRANT] case.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c2
1 files changed, 2 insertions, 0 deletions
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.