diff options
author | Manoj Gupta <manojgupta@google.com> | 2017-05-16 23:18:57 +0300 |
---|---|---|
committer | Manoj Gupta <manojgupta@google.com> | 2017-05-16 23:18:57 +0300 |
commit | 2cbfd2506ab8aa8574324dbfac50e5bfcc31484c (patch) | |
tree | 07980fd0dadffe38eba73fbef8c636da043d84f7 /libunwind | |
parent | 3bef27cc6f42c01f56cf0b6876b7cf0d3c10ba6d (diff) |
[libunwind] Fix executable stack directive on Linux.
Summary:
Disable executable stack on Linux. Also remove redundant Android check
as it is covered by Android.
Reviewers: phosek, compnerd, rs, rmaprath, EricWF, krytarowski
Reviewed By: krytarowski
Subscribers: srhines, llvm-commits, krytarowski
Differential Revision: https://reviews.llvm.org/D33217
llvm-svn: 303206
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/assembly.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h index 9fb9905be27f..d28cbc930bf1 100644 --- a/libunwind/src/assembly.h +++ b/libunwind/src/assembly.h @@ -47,8 +47,8 @@ #define SYMBOL_IS_FUNC(name) .type name,@function #endif -#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__) || \ - defined(__Fuchsia__) +#if defined(__GNU__) || defined(__FreeBSD__) || defined(__Fuchsia__) || \ + defined(__linux__) #define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits #else #define NO_EXEC_STACK_DIRECTIVE |