summaryrefslogtreecommitdiff
path: root/extra/gnutls/addGNU-stack.diff
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnutls/addGNU-stack.diff')
-rw-r--r--extra/gnutls/addGNU-stack.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/gnutls/addGNU-stack.diff b/extra/gnutls/addGNU-stack.diff
new file mode 100644
index 000000000..8324b5a58
--- /dev/null
+++ b/extra/gnutls/addGNU-stack.diff
@@ -0,0 +1,13 @@
+Description: Prevent executable stack
+Author: Andreas Metzler <ametzler@debian.org>
+
+--- gnutls28-3.0.4.orig/lib/accelerated/x86/asm/padlock-common.s
++++ gnutls28-3.0.4/lib/accelerated/x86/asm/padlock-common.s
+@@ -38,3 +38,7 @@ is_padlock_nano:
+ xorl %eax,%eax
+ ret
+ .size is_padlock_nano,.-is_padlock_nano
++
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif