]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
record more email comments
authorNicholas Nethercote <njn@valgrind.org>
Wed, 16 Nov 2005 23:54:46 +0000 (23:54 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Wed, 16 Nov 2005 23:54:46 +0000 (23:54 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5156

coregrind/m_main.c

index b381a0645ff7eed2d6641b850d1a1f5d877e2e7f..94345ec6a672a9ebfb6811a26a8f9db45ffb2433 100644 (file)
@@ -658,7 +658,10 @@ static void setup_client_dataseg ( SizeT max_size )
    vg_assert(ok);
 
    /* We make the data segment (heap) executable because LinuxThreads on
-      ppc32 creates trampolines in this area. */
+      ppc32 creates trampolines in this area.  Also, on x86/Linux the data
+      segment is RWX natively, at least according to /proc/self/maps.
+      Also, having a non-executable data seg would kill any program which
+      tried to create code in the data seg and then run it. */
    sres = VG_(am_mmap_anon_fixed_client)( 
              anon_start, 
              anon_size,