summaryrefslogtreecommitdiff
path: root/media-tv/xbmc/files/xbmc-11.0-no-exec-stack.patch
blob: 35ff747d4f8bb1b04a37259b2b9c9180997cd574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
http://trac.xbmc.org/ticket/12735

merged upstream already

From f0e33eefa4b5d46f26811db2f5e943dcd7f2870e Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 1 Mar 2012 00:04:49 -0500
Subject: [PATCH] mark stack as non-executable

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 xbmc/utils/fastmemcpy-arm.S |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/xbmc/utils/fastmemcpy-arm.S b/xbmc/utils/fastmemcpy-arm.S
index 0e810a7..3d77c68 100644
--- a/xbmc/utils/fastmemcpy-arm.S
+++ b/xbmc/utils/fastmemcpy-arm.S
@@ -527,3 +527,8 @@ copy_last_3_and_return:
 
 #endif    /* __ARM_ARCH__ < 7 */
 #endif
+
+#if defined(__linux__) && defined(__ELF__)
+/* we don't need an executable stack */
+.section .note.GNU-stack,"",%progbits
+#endif
-- 
1.7.8.4