Skip to content

Commit

Permalink
sys-devel/llvm: Readd WX stack fix to 3.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Sep 3, 2016
1 parent 95fd370 commit 1cba74c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sys-devel/llvm/llvm-3.9.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,15 @@ src_prepare() {

# Fix git-clang-format shebang, bug #562688
python_fix_shebang tools/clang/tools/clang-format/git-clang-format

pushd projects/compiler-rt >/dev/null || die

# Fix WX sections, bug #421527
find lib/builtins -type f -name '*.S' -exec sed \
-e '$a\\n#if defined(__linux__) && defined(__ELF__)\n.section .note.GNU-stack,"",%progbits\n#endif' \
-i {} + || die

popd >/dev/null || die
fi

if use lldb; then
Expand Down

0 comments on commit 1cba74c

Please sign in to comment.