aboutsummaryrefslogtreecommitdiff
path: root/elf/tst-execstack.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-execstack.c')
-rw-r--r--elf/tst-execstack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/tst-execstack.c b/elf/tst-execstack.c
index 21eaa9b..4b06615 100644
--- a/elf/tst-execstack.c
+++ b/elf/tst-execstack.c
@@ -48,7 +48,7 @@ waiter_thread (void *arg)
static int
do_test (void)
{
- void *f;
+ static void *f; /* Address of this is used in other threads. */
#if USE_PTHREADS
/* Create some threads while stacks are nonexecutable. */