c5cb967
From a917e3fed4c915c07b01ee07c17aeefd5500cd74 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
c5cb967
Subject: [PATCH 10/16] 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
1dbbca1
index 9720665..6a9eef0 100644
95cf7b3
--- a/asmrun/arm.S
95cf7b3
+++ b/asmrun/arm.S
1dbbca1
@@ -498,3 +498,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
1dbbca1
index 9b4b9ab..c23168b 100644
95cf7b3
--- a/asmrun/arm64.S
95cf7b3
+++ b/asmrun/arm64.S
1dbbca1
@@ -549,3 +549,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
-- 
23620d4
2.3.1
95cf7b3