about summary refs log tree commit diff
path: root/elf/tst-tlsmod2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod2.c')
-rw-r--r--elf/tst-tlsmod2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/elf/tst-tlsmod2.c b/elf/tst-tlsmod2.c
index 6aec8120c0..1a4c73b8a0 100644
--- a/elf/tst-tlsmod2.c
+++ b/elf/tst-tlsmod2.c
@@ -12,9 +12,13 @@ COMMON_INT_DEF(foo);
 int
 in_dso (int n, int *caller_foop)
 {
-  int *foop = TLS_GD (foo);
+  int *foop;
   int result = 0;
 
+  puts ("foo");			/* Make sure PLT is used before macros.  */
+
+  foop = TLS_GD (foo);
+
   if (caller_foop != NULL && foop != caller_foop)
     {
       printf ("callers address of foo differs: %p vs %p\n", caller_foop, foop);