Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/xbmc/files: xbmc-9999-no-exec-stack.patch
Date: Thu, 01 Mar 2012 05:13:05
Message-Id: 20120301051253.C17302004C@flycatcher.gentoo.org
1 vapier 12/03/01 05:12:53
2
3 Added: xbmc-9999-no-exec-stack.patch
4 Log:
5 Fix exec stack warnings.
6
7 Revision Changes Path
8 1.1 media-tv/xbmc/files/xbmc-9999-no-exec-stack.patch
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/files/xbmc-9999-no-exec-stack.patch?rev=1.1&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xbmc/files/xbmc-9999-no-exec-stack.patch?rev=1.1&content-type=text/plain
12
13 Index: xbmc-9999-no-exec-stack.patch
14 ===================================================================
15 http://trac.xbmc.org/ticket/12735
16
17 From f0e33eefa4b5d46f26811db2f5e943dcd7f2870e Mon Sep 17 00:00:00 2001
18 From: Mike Frysinger <vapier@g.o>
19 Date: Thu, 1 Mar 2012 00:04:49 -0500
20 Subject: [PATCH] mark stack as non-executable
21
22 Signed-off-by: Mike Frysinger <vapier@g.o>
23 ---
24 xbmc/utils/fastmemcpy-arm.S | 5 +++++
25 1 files changed, 5 insertions(+), 0 deletions(-)
26
27 diff --git a/xbmc/utils/fastmemcpy-arm.S b/xbmc/utils/fastmemcpy-arm.S
28 index 0e810a7..3d77c68 100644
29 --- a/xbmc/utils/fastmemcpy-arm.S
30 +++ b/xbmc/utils/fastmemcpy-arm.S
31 @@ -527,3 +527,8 @@ copy_last_3_and_return:
32
33 #endif /* __ARM_ARCH__ < 7 */
34 #endif
35 +
36 +#if defined(__linux__) && defined(__ELF__)
37 +/* we don't need an executable stack */
38 +.section .note.GNU-stack,"",%progbits
39 +#endif
40 --
41 1.7.8.4