From: Manoj Gupta Date: Tue, 16 May 2017 20:18:57 +0000 (+0000) Subject: [libunwind] Fix executable stack directive on Linux. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cbfd2506ab8aa8574324dbfac50e5bfcc31484c;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h index 9fb9905..d28cbc9 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