aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-tlsmod4.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-tlsmod4.c')
-rw-r--r--elf/tst-tlsmod4.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/elf/tst-tlsmod4.c b/elf/tst-tlsmod4.c
index d40b3fdf61..c536303b47 100644
--- a/elf/tst-tlsmod4.c
+++ b/elf/tst-tlsmod4.c
@@ -12,9 +12,13 @@ COMMON_INT_DEF(baz);
int
in_dso (int n, int *caller_bazp)
{
- int *bazp = TLS_GD (baz);
+ int *bazp;
int result = 0;
+ puts ("foo"); /* Make sure PLT is used before macros. */
+
+ bazp = TLS_GD (baz);
+
if (caller_bazp != NULL && bazp != caller_bazp)
{
printf ("callers address of baz differs: %p vs %p\n", caller_bazp, bazp);