diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-05-24 16:24:48 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-06-01 12:41:58 +1000 |
commit | 18879587afa9fe5fc2ebf9e5f86236b7ac50c082 (patch) | |
tree | 4d809c74bf2a7f8b23ab2f2b927fe206c05634b0 | |
parent | 6bfcb1ca5b9932c596dd30ec868300f7abcbedc5 (diff) | |
download | mongo-18879587afa9fe5fc2ebf9e5f86236b7ac50c082.tar.gz |
WT-2629 Make the stack non-executable with GCC only. (#2742)
(cherry picked from commit f6f86961a49894bb1b72c4c4d2cdca5c0d0ea9e4)
-rw-r--r-- | src/support/power8/crc32.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/support/power8/crc32.S b/src/support/power8/crc32.S index 9c2819030b9..f990acb7b12 100644 --- a/src/support/power8/crc32.S +++ b/src/support/power8/crc32.S @@ -770,5 +770,9 @@ FUNC_START(__crc32_vpmsum) FUNC_END(__crc32_vpmsum) #endif -/* Make sure the stack isn't executable (regardless of platform). */ +/* + * Make sure the stack isn't executable with GCC (regardless of platform). + */ +#ifndef __clang__ .section .note.GNU-stack,"",@progbits +#endif |