commit | a911c6f1d0c6f8b7e175bd36e7044d79cdcf5153 | [log] [tgz] |
---|---|---|
author | Dmitry Vyukov <dvyukov@google.com> | Fri Aug 17 18:05:28 2012 +0000 |
committer | Dmitry Vyukov <dvyukov@google.com> | Fri Aug 17 18:05:28 2012 +0000 |
tree | 212bf3ab40b47145da548e8cad31376c726965b8 | |
parent | 9ee7cf199bbeb71788088d880d453b8ac9d2fca0 [diff] |
tsan: Non-executable stack for hand-coded assembly git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162112 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/tsan/rtl/tsan_rtl_amd64.S b/lib/tsan/rtl/tsan_rtl_amd64.S index 2028ec5..a6e2e29 100644 --- a/lib/tsan/rtl/tsan_rtl_amd64.S +++ b/lib/tsan/rtl/tsan_rtl_amd64.S
@@ -69,3 +69,8 @@ pop %rcx pop %rax ret + +#ifdef __linux__ +/* We do not need executable stack. */ +.section .note.GNU-stack,"",@progbits +#endif