aboutsummaryrefslogtreecommitdiffstats
path: root/community/llvm-libunwind/no-exec-stack.patch
diff options
context:
space:
mode:
authorShiz <hi@shiz.me>2017-05-16 02:59:32 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-16 18:11:23 +0200
commit003a5bc19e8e307f6d3bb130ecb7ac799fa8108c (patch)
tree05fe4409b8b397647f1b4f0a7de0e524161ba3d8 /community/llvm-libunwind/no-exec-stack.patch
parent658eb1da4c0690d2e16d506c881eac3d3444ec39 (diff)
downloadaports-003a5bc19e8e307f6d3bb130ecb7ac799fa8108c.tar.bz2
aports-003a5bc19e8e307f6d3bb130ecb7ac799fa8108c.tar.xz
community/llvm-libunwind: upgrade to 4.0.0
Diffstat (limited to 'community/llvm-libunwind/no-exec-stack.patch')
-rw-r--r--community/llvm-libunwind/no-exec-stack.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/llvm-libunwind/no-exec-stack.patch b/community/llvm-libunwind/no-exec-stack.patch
new file mode 100644
index 0000000000..6220e946b3
--- /dev/null
+++ b/community/llvm-libunwind/no-exec-stack.patch
@@ -0,0 +1,19 @@
+Remove the gatekeeping to set a non-executable stack for libunwind,
+as we don't define any of these directives but still want it.
+
+diff -Nru a/src/assembly.h b/src/assembly.h
+--- a/src/assembly.h 2016-10-23 21:48:47.000000000 +0000
++++ b/src/assembly.h 2017-05-16 12:38:47.209169931 +0000
+@@ -47,12 +47,7 @@
+ #define SYMBOL_IS_FUNC(name) .type name,@function
+ #endif
+
+-#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__) || \
+- defined(__Fuchsia__)
+ #define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
+-#else
+-#define NO_EXEC_STACK_DIRECTIVE
+-#endif
+
+ #else
+