|
|
1280ab |
From 262882b5fe2d327170f33a28dc35866aa32af84e Mon Sep 17 00:00:00 2001
|
|
|
1280ab |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
1280ab |
Date: Sat, 10 May 2014 03:20:35 -0400
|
|
|
f9602d |
Subject: [PATCH 14/18] arm, arm64: 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/arm.S | 3 +++
|
|
|
1280ab |
asmrun/arm64.S | 3 +++
|
|
|
1280ab |
2 files changed, 6 insertions(+)
|
|
|
1280ab |
|
|
|
1280ab |
diff --git a/asmrun/arm.S b/asmrun/arm.S
|
|
|
1280ab |
index 2ce244a..90f5b6e 100644
|
|
|
1280ab |
--- a/asmrun/arm.S
|
|
|
1280ab |
+++ b/asmrun/arm.S
|
|
|
1280ab |
@@ -489,3 +489,6 @@ caml_system__frametable:
|
|
|
1280ab |
.align 2
|
|
|
1280ab |
.type caml_system__frametable, %object
|
|
|
1280ab |
.size caml_system__frametable, .-caml_system__frametable
|
|
|
1280ab |
+
|
|
|
1280ab |
+ /* Mark stack as non-executable, PR#4564 */
|
|
|
1280ab |
+ .section .note.GNU-stack,"",%progbits
|
|
|
1280ab |
diff --git a/asmrun/arm64.S b/asmrun/arm64.S
|
|
|
1280ab |
index de670e6..84e18ba 100644
|
|
|
1280ab |
--- a/asmrun/arm64.S
|
|
|
1280ab |
+++ b/asmrun/arm64.S
|
|
|
1280ab |
@@ -533,3 +533,6 @@ caml_system__frametable:
|
|
|
1280ab |
.align 3
|
|
|
1280ab |
.type caml_system__frametable, %object
|
|
|
1280ab |
.size caml_system__frametable, .-caml_system__frametable
|
|
|
1280ab |
+
|
|
|
1280ab |
+ /* Mark stack as non-executable, PR#4564 */
|
|
|
1280ab |
+ .section .note.GNU-stack,"",%progbits
|
|
|
1280ab |
--
|
|
|
f9602d |
2.3.1
|
|
|
1280ab |
|