Blame SOURCES/0001-ppc-ppc64-ppc64le-Mark-stack-as-non-executable.patch

1280ab
From 4e06fda2060d8696649260937f8a551815de24cf Mon Sep 17 00:00:00 2001
1280ab
From: "Richard W.M. Jones" <rjones@redhat.com>
1280ab
Date: Thu, 11 Sep 2014 14:49:54 +0100
1280ab
Subject: [PATCH] ppc, ppc64, ppc64le: Mark stack as non-executable.
1280ab
1280ab
The same fix as this one, which was only fully applied to
1280ab
i686 & x86-64:
1280ab
1280ab
http://caml.inria.fr/mantis/view.php?id=4564
1280ab
---
1280ab
 asmrun/power-elf.S   | 3 +++
1280ab
 asmrun/power64-elf.S | 2 ++
1280ab
 2 files changed, 5 insertions(+)
1280ab
1280ab
diff --git a/asmrun/power-elf.S b/asmrun/power-elf.S
1280ab
index facbfbf..14d28a0 100644
1280ab
--- a/asmrun/power-elf.S
1280ab
+++ b/asmrun/power-elf.S
1280ab
@@ -478,3 +478,6 @@ caml_system__frametable:
1280ab
         .long   .L105 + 4       /* return address into callback */
1280ab
         .short  -1              /* negative size count => use callback link */
1280ab
         .short  0               /* no roots here */
1280ab
+
1280ab
+/* Mark stack as non-executable, PR#4564 */
1280ab
+        .section .note.GNU-stack,"",%progbits
1280ab
diff --git a/asmrun/power64-elf.S b/asmrun/power64-elf.S
1280ab
index 98c42e2..b7bfce4 100644
1280ab
--- a/asmrun/power64-elf.S
1280ab
+++ b/asmrun/power64-elf.S
1280ab
@@ -577,3 +577,5 @@ caml_system__frametable:
1280ab
         .short  0               /* no roots here */
1280ab
         .align  3
1280ab
 
1280ab
+/* Mark stack as non-executable, PR#4564 */
1280ab
+        .section .note.GNU-stack,"",%progbits
1280ab
-- 
1280ab
2.0.4
1280ab