summaryrefslogtreecommitdiff
path: root/elf/dl-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 2b53770605..e3df749ae5 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -287,6 +287,11 @@ _dl_non_dynamic_init (void)
if (_dl_platform != NULL)
_dl_platformlen = strlen (_dl_platform);
+#if defined (__i386__) && !defined (USE_TLS)
+ /* Load libs not using TLS. */
+ _dl_osversion = 0x20205;
+#endif
+
/* Scan for a program header telling us the stack is nonexecutable. */
if (_dl_phdr != NULL)
for (uint_fast16_t i = 0; i < _dl_phnum; ++i)