summaryrefslogtreecommitdiff
path: root/elf/tst-tlsmod3.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod3.c')
-rw-r--r--elf/tst-tlsmod3.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/elf/tst-tlsmod3.c b/elf/tst-tlsmod3.c
index 087c11b7a0..6b7fbccf4e 100644
--- a/elf/tst-tlsmod3.c
+++ b/elf/tst-tlsmod3.c
@@ -15,10 +15,15 @@ COMMON_INT_DEF(comm_n);
int
in_dso2 (void)
{
- int *foop = TLS_GD (foo);
+ int *foop;
int result = 0;
static int n;
- int *np = TLS_GD (comm_n);
+ int *np;
+
+ puts ("foo"); /* Make sure PLT is used before macros. */
+
+ foop = TLS_GD (foo);
+ np = TLS_GD (comm_n);
if (n != *np)
{