Explicitly mark the stack as non-executable for Solaris

binaries (Valgrind launcher and tools).
Follow-up for r15692. n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15696
This commit is contained in:
Ivo Raisr 2015-10-02 16:45:01 +00:00
parent 8327786b08
commit 10fe719d7a
2 changed files with 5 additions and 1 deletions

View 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@

View 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