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