91c6a9
From a2a1e564bbe995f44de2023893f6dea51668b51e Mon Sep 17 00:00:00 2001
95cf7b
From: "Richard W.M. Jones" <rjones@redhat.com>
95cf7b
Date: Sat, 10 May 2014 03:20:35 -0400
5d60b0
Subject: [PATCH 08/12] arm, arm64: Mark stack as non-executable.
95cf7b
95cf7b
The same fix as this one, which was only fully applied to
95cf7b
i686 & x86-64:
95cf7b
95cf7b
http://caml.inria.fr/mantis/view.php?id=4564
95cf7b
---
95cf7b
 asmrun/arm.S   | 3 +++
95cf7b
 asmrun/arm64.S | 3 +++
95cf7b
 2 files changed, 6 insertions(+)
95cf7b
95cf7b
diff --git a/asmrun/arm.S b/asmrun/arm.S
1dbbca
index 9720665..6a9eef0 100644
95cf7b
--- a/asmrun/arm.S
95cf7b
+++ b/asmrun/arm.S
1dbbca
@@ -498,3 +498,6 @@ caml_system__frametable:
95cf7b
         .align  2
95cf7b
         .type   caml_system__frametable, %object
95cf7b
         .size   caml_system__frametable, .-caml_system__frametable
95cf7b
+
95cf7b
+    /* Mark stack as non-executable, PR#4564 */
95cf7b
+        .section .note.GNU-stack,"",%progbits
95cf7b
diff --git a/asmrun/arm64.S b/asmrun/arm64.S
1dbbca
index 9b4b9ab..c23168b 100644
95cf7b
--- a/asmrun/arm64.S
95cf7b
+++ b/asmrun/arm64.S
1dbbca
@@ -549,3 +549,6 @@ caml_system__frametable:
95cf7b
         .align  3
95cf7b
         .type   caml_system__frametable, %object
95cf7b
         .size   caml_system__frametable, .-caml_system__frametable
95cf7b
+
95cf7b
+    /* Mark stack as non-executable, PR#4564 */
95cf7b
+        .section .note.GNU-stack,"",%progbits
95cf7b
-- 
1dbbca
2.0.4
95cf7b