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