aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-tlsmod1.c1
-rw-r--r--elf/tst-tlsmod2.c1
-rw-r--r--elf/tst-tlsmod3.c1
-rw-r--r--elf/tst-tlsmod4.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/elf/tst-tlsmod1.c b/elf/tst-tlsmod1.c
index 946aa375cc..c74a617b77 100644
--- a/elf/tst-tlsmod1.c
+++ b/elf/tst-tlsmod1.c
@@ -23,6 +23,7 @@ in_dso (void)
/* Get variables using initial exec model. */
fputs ("get sum of foo and bar (IE)", stdout);
+ asm ("" ::: "memory");
ap = TLS_IE (foo);
bp = TLS_IE (bar);
printf (" = %d\n", *ap + *bp);
diff --git a/elf/tst-tlsmod2.c b/elf/tst-tlsmod2.c
index 1a4c73b8a0..98d9d3e518 100644
--- a/elf/tst-tlsmod2.c
+++ b/elf/tst-tlsmod2.c
@@ -16,6 +16,7 @@ in_dso (int n, int *caller_foop)
int result = 0;
puts ("foo"); /* Make sure PLT is used before macros. */
+ asm ("" ::: "memory");
foop = TLS_GD (foo);
diff --git a/elf/tst-tlsmod3.c b/elf/tst-tlsmod3.c
index 6b7fbccf4e..4a8aad659f 100644
--- a/elf/tst-tlsmod3.c
+++ b/elf/tst-tlsmod3.c
@@ -21,6 +21,7 @@ in_dso2 (void)
int *np;
puts ("foo"); /* Make sure PLT is used before macros. */
+ asm ("" ::: "memory");
foop = TLS_GD (foo);
np = TLS_GD (comm_n);
diff --git a/elf/tst-tlsmod4.c b/elf/tst-tlsmod4.c
index c536303b47..5285e821b0 100644
--- a/elf/tst-tlsmod4.c
+++ b/elf/tst-tlsmod4.c
@@ -16,6 +16,7 @@ in_dso (int n, int *caller_bazp)
int result = 0;
puts ("foo"); /* Make sure PLT is used before macros. */
+ asm ("" ::: "memory");
bazp = TLS_GD (baz);