File infinipath-non_executable_stack.patch of Package infinipath-psm
---
ipath/ipath_dwordcpy-i386.S | 5 +++++
ipath/ipath_dwordcpy-x86_64-fast.S | 5 +++++
2 files changed, 10 insertions(+)
Index: ipath/ipath_dwordcpy-i386.S
===================================================================
--- ipath/ipath_dwordcpy-i386.S.orig 2014-10-10 23:07:04.000000000 +0200
+++ ipath/ipath_dwordcpy-i386.S 2015-08-19 07:41:52.628711854 +0200
@@ -56,3 +56,8 @@ ipath_dwordcpy:
mov %eax,%edi
mov %edx,%esi
ret
+
+// Mark stack unexecutable
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
Index: ipath/ipath_dwordcpy-x86_64-fast.S
===================================================================
--- ipath/ipath_dwordcpy-x86_64-fast.S.orig 2014-10-10 23:07:04.000000000 +0200
+++ ipath/ipath_dwordcpy-x86_64-fast.S 2015-08-19 07:41:51.293742890 +0200
@@ -49,3 +49,8 @@ ipath_dwordcpy:
rep
movsd
ret
+
+// Mark stack unexecutable
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif