Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/
Date: Sat, 03 Sep 2016 17:35:46
Message-Id: 1472924130.1cba74ccbbac94faacfe3ca83eae0b6516a5e54c.mgorny@gentoo
1 commit: 1cba74ccbbac94faacfe3ca83eae0b6516a5e54c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 3 14:46:49 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 3 17:35:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cba74cc
7
8 sys-devel/llvm: Readd WX stack fix to 3.9.0
9
10 sys-devel/llvm/llvm-3.9.0.ebuild | 9 +++++++++
11 1 file changed, 9 insertions(+)
12
13 diff --git a/sys-devel/llvm/llvm-3.9.0.ebuild b/sys-devel/llvm/llvm-3.9.0.ebuild
14 index ed79ebb..3752c6d 100644
15 --- a/sys-devel/llvm/llvm-3.9.0.ebuild
16 +++ b/sys-devel/llvm/llvm-3.9.0.ebuild
17 @@ -202,6 +202,15 @@ src_prepare() {
18
19 # Fix git-clang-format shebang, bug #562688
20 python_fix_shebang tools/clang/tools/clang-format/git-clang-format
21 +
22 + pushd projects/compiler-rt >/dev/null || die
23 +
24 + # Fix WX sections, bug #421527
25 + find lib/builtins -type f -name '*.S' -exec sed \
26 + -e '$a\\n#if defined(__linux__) && defined(__ELF__)\n.section .note.GNU-stack,"",%progbits\n#endif' \
27 + -i {} + || die
28 +
29 + popd >/dev/null || die
30 fi
31
32 if use lldb; then