elf: Remove legacy hwcaps support from the dynamic loader
[glibc.git] / elf / tst-tlsmod4.c
blobf38919a8a94861c1c531730a02bdb754b32cebbc
1 #include <stdio.h>
4 __thread int baz;
7 int
8 in_dso (int n, int *caller_bazp)
10 int *bazp;
11 int result = 0;
13 puts ("foo"); /* Make sure PLT is used before macros. */
14 asm ("" ::: "memory");
16 bazp = &baz;
18 if (caller_bazp != NULL && bazp != caller_bazp)
20 printf ("callers address of baz differs: %p vs %p\n", caller_bazp, bazp);
21 result = 1;
23 else if (*bazp != n)
25 printf ("baz != %d\n", n);
26 result = 1;
29 *bazp = 16;
31 return result;