aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-tls4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tls4.c')
-rw-r--r--elf/tst-tls4.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/elf/tst-tls4.c b/elf/tst-tls4.c
index f92ee53ce5..32ec147420 100644
--- a/elf/tst-tls4.c
+++ b/elf/tst-tls4.c
@@ -4,6 +4,14 @@
#include <tls.h>
+#ifdef USE_TLS
+# include "tls-macros.h"
+
+/* This gives the executable a TLS segment so that even if the libc.so
+ it loads has none (i.e. --with-tls --without-__thread), ld.so will
+ permit loading of objects with TLS segments. */
+COMMON_INT_DEF(loser);
+#endif
#define TEST_FUNCTION do_test ()
static int