[PATCH] D33219: Fix executable stack detection on Linux.
Manoj Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 15:55:49 PDT 2017
manojgupta created this revision.
Herald added a subscriber: srhines.
Use __linux__ to check for linux. Replace check for __GNUC__
by __GNU__.
https://reviews.llvm.org/D33219
Files:
lib/builtins/assembly.h
Index: lib/builtins/assembly.h
===================================================================
--- lib/builtins/assembly.h
+++ lib/builtins/assembly.h
@@ -44,7 +44,7 @@
#endif
#define CONST_SECTION .section .rodata
-#if defined(__GNUC__) || defined(__ANDROID__) || defined(__FreeBSD__)
+#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__) || defined(__linux__)
#define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
#else
#define NO_EXEC_STACK_DIRECTIVE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33219.99074.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/cbf7d73f/attachment.bin>
More information about the llvm-commits
mailing list