sys-devel/llvm: Sync and clean up WX section code

This commit is contained in:
Michał Górny
2016-07-03 09:17:44 +02:00
parent 9ca3a8be77
commit dca110f765
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -216,8 +216,8 @@ src_prepare() {
# 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
-e '$a\\n#if defined(__linux__) && defined(__ELF__)\n.section .note.GNU-stack,"",%progbits\n#endif' \
-i {} + || die
popd >/dev/null || die
fi
+2 -2
View File
@@ -214,8 +214,8 @@ src_prepare() {
# 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
-e '$a\\n#if defined(__linux__) && defined(__ELF__)\n.section .note.GNU-stack,"",%progbits\n#endif' \
-i {} + || die
popd >/dev/null || die
fi
+3 -3
View File
@@ -192,9 +192,9 @@ src_prepare() {
eapply "${FILESDIR}"/cmake/clang-0002-cmake-Make-CLANG_LIBDIR_SUFFIX-overridable.patch
# Fix WX sections, bug #421527
find "${S}"/projects/compiler-rt/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
find projects/compiler-rt/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
fi
if use lldb; then