[compiler-rt] r303112 - [builtins] Fix a check from __GNU__ to __GNUC__ for disabling executable stack.
Manoj Gupta via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 13:41:18 PDT 2017
Author: manojgupta
Date: Mon May 15 15:41:17 2017
New Revision: 303112
URL: http://llvm.org/viewvc/llvm-project?rev=303112&view=rev
Log:
[builtins] Fix a check from __GNU__ to __GNUC__ for disabling executable stack.
Summary:
Neither GCC nor Clang define __GNU__. Instead use __GNUC__ for the check.
Reviewers: echristo, rengolin, compnerd
Subscribers: srhines, krytarowski, llvm-commits
Differential Revision: https://reviews.llvm.org/D33211
Modified:
compiler-rt/trunk/lib/builtins/assembly.h
Modified: compiler-rt/trunk/lib/builtins/assembly.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/assembly.h?rev=303112&r1=303111&r2=303112&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/assembly.h (original)
+++ compiler-rt/trunk/lib/builtins/assembly.h Mon May 15 15:41:17 2017
@@ -44,7 +44,7 @@
#endif
#define CONST_SECTION .section .rodata
-#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__)
+#if defined(__GNUC__) || defined(__ANDROID__) || defined(__FreeBSD__)
#define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
#else
#define NO_EXEC_STACK_DIRECTIVE
More information about the llvm-commits
mailing list