From e33db7b097a85ff396cb941e64f6a42c559cc205 Mon Sep 17 00:00:00 2001 From: "Clifford T. Matthews" Date: Sat, 6 Jun 2009 10:40:56 -0600 Subject: [PATCH] Don't need -z execstack after all. --- test/Makefile.am | 2 +- test/driver.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile.am b/test/Makefile.am index 9ffc2bf..e309542 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -19,7 +19,7 @@ testbattery.c: tests.c maketestbattery.pl syngentest_LDADD = ../runtime/libsyn68k.a -syngentest_LDFLAGS = -z execstack +syngentest_LDFLAGS = INCLUDES = -I$(srcdir)/include -I$(srcdir)/../include -I../include diff --git a/test/driver.c b/test/driver.c index 958b238..d1f85fd 100644 --- a/test/driver.c +++ b/test/driver.c @@ -67,7 +67,7 @@ test_all_instructions (uint32 try_count) #endif uint8 *m = mmap (DESIRED_PTR, (M_SIZE + SLOP + 4095) & ~4095, - PROT_READ|PROT_WRITE, + PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_FIXED|MAP_PRIVATE, -1, 0); #endif /* defined (__linux__) */