aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-object.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-object.c')
-rw-r--r--elf/dl-object.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-object.c b/elf/dl-object.c
index 6196cd7..a33b40a 100644
--- a/elf/dl-object.c
+++ b/elf/dl-object.c
@@ -53,6 +53,10 @@ _dl_new_object (char *realname, const char *libname, int type,
new->l_name = realname;
new->l_type = type;
new->l_loader = loader;
+#if defined USE_TLS && NO_TLS_OFFSET != 0
+ new->l_tls_offset = NO_TLS_OFFSET;
+#endif
+
/* new->l_global = 0; We use calloc therefore not necessary. */
/* Use the 'l_scope_mem' array by default for the the 'l_scope'