From: Julian Seward Date: Wed, 16 Nov 2005 17:12:38 +0000 (+0000) Subject: Make the data segment (heap) executable. LinuxThreads on ppc32 creates X-Git-Tag: svn/VALGRIND_3_1_0~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb964cccdbccecd9571f64a0cf6be8f1612360a;p=thirdparty%2Fvalgrind.git Make the data segment (heap) executable. LinuxThreads on ppc32 creates trampolines in this area. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5147 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 1ee861f303..ebf216feeb 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -660,7 +660,7 @@ static void setup_client_dataseg ( SizeT max_size ) sres = VG_(am_mmap_anon_fixed_client)( anon_start, anon_size, - VKI_PROT_READ|VKI_PROT_WRITE + VKI_PROT_READ|VKI_PROT_WRITE|VKI_PROT_EXEC ); vg_assert(!sres.isError); vg_assert(sres.val == anon_start);