f482b15
From dab7f94484f21ae05a996a11177bad9b4435b610 Mon Sep 17 00:00:00 2001
95cf7b3
From: "Richard W.M. Jones" <rjones@redhat.com>
95cf7b3
Date: Sat, 10 May 2014 03:20:35 -0400
5815ad5
Subject: [PATCH 08/10] arm, arm64: Mark stack as non-executable.
95cf7b3
95cf7b3
The same fix as this one, which was only fully applied to
95cf7b3
i686 & x86-64:
95cf7b3
95cf7b3
http://caml.inria.fr/mantis/view.php?id=4564
95cf7b3
---
95cf7b3
 asmrun/arm.S   | 3 +++
95cf7b3
 asmrun/arm64.S | 3 +++
95cf7b3
 2 files changed, 6 insertions(+)
95cf7b3
95cf7b3
diff --git a/asmrun/arm.S b/asmrun/arm.S
95cf7b3
index 2ce244a..90f5b6e 100644
95cf7b3
--- a/asmrun/arm.S
95cf7b3
+++ b/asmrun/arm.S
95cf7b3
@@ -489,3 +489,6 @@ caml_system__frametable:
95cf7b3
         .align  2
95cf7b3
         .type   caml_system__frametable, %object
95cf7b3
         .size   caml_system__frametable, .-caml_system__frametable
95cf7b3
+
95cf7b3
+    /* Mark stack as non-executable, PR#4564 */
95cf7b3
+        .section .note.GNU-stack,"",%progbits
95cf7b3
diff --git a/asmrun/arm64.S b/asmrun/arm64.S
5815ad5
index fa871df..50abdae 100644
95cf7b3
--- a/asmrun/arm64.S
95cf7b3
+++ b/asmrun/arm64.S
95cf7b3
@@ -533,3 +533,6 @@ caml_system__frametable:
95cf7b3
         .align  3
95cf7b3
         .type   caml_system__frametable, %object
95cf7b3
         .size   caml_system__frametable, .-caml_system__frametable
95cf7b3
+
95cf7b3
+    /* Mark stack as non-executable, PR#4564 */
95cf7b3
+        .section .note.GNU-stack,"",%progbits
95cf7b3
-- 
f482b15
1.9.3
95cf7b3