mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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:
parent
8327786b08
commit
10fe719d7a
@ -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@
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user