mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 23:27:12 -08:00
sys-devel/llvm: Sync and clean up WX section code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user