]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Explicitly mark the stack as non-executable for Solaris
authorIvo Raisr <ivosh@ivosh.net>
Fri, 2 Oct 2015 16:45:01 +0000 (16:45 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Fri, 2 Oct 2015 16:45:01 +0000 (16:45 +0000)
binaries (Valgrind launcher and tools).
Follow-up for r15692. n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15696

Makefile.tool.am
coregrind/Makefile.am

index d7198825ec7467e5bbb330939d6853d92d5d413f..5af3023d92e5b8d7c3e63104f3b95e9be1c775ed 100644 (file)
@@ -37,7 +37,8 @@ TOOL_LDFLAGS_COMMON_LINUX = \
 TOOL_LDFLAGS_COMMON_DARWIN = \
        -nodefaultlibs -nostartfiles -Wl,-u,__start -Wl,-e,__start
 TOOL_LDFLAGS_COMMON_SOLARIS = \
-       -static -nodefaultlibs -nostartfiles -u _start
+       -static -nodefaultlibs -nostartfiles -u _start \
+       -Wl,-M,/usr/lib/ld/map.noexstk
 
 TOOL_LDFLAGS_X86_LINUX = \
        $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@
index 7f25f489df61d0e7d3620c6ce0bf103c1e96649a..d29f9549e4dccd56ab45787eeb814c2d66f41da1 100644 (file)
@@ -66,6 +66,9 @@ if VGCONF_PLATVARIANT_IS_ANDROID
 valgrind_CFLAGS += -static
 valgrind_LDFLAGS   += -Wl,-z,noexecstack
 endif
+if VGCONF_OS_IS_SOLARIS
+valgrind_LDFLAGS   += -Wl,-M,/usr/lib/ld/map.noexstk
+endif
 
 
 vgdb_SOURCES = vgdb.c