pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiler-rt-netbsd: Enable SafeStack on NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Wed Aug 9 16:20:36 2017 +0200
Changeset: b5263f1579058cb4ced0d36712da5aabdcbc8180
Modified Files:
compiler-rt-netbsd/distinfo
Added Files:
compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
compiler-rt-netbsd/patches/patch-lib_safestack_safestack.cc
Log Message:
compiler-rt-netbsd: Enable SafeStack on NetBSD
Sponsored by <The NetBSD Foundation>
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5263f1579058cb4ced0d36712da5aabdcbc8180
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
compiler-rt-netbsd/distinfo | 2 ++
compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake | 13 +++++++++++++
.../patches/patch-lib_safestack_safestack.cc | 14 ++++++++++++++
3 files changed, 29 insertions(+)
diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index db8ba607bd..e0f195c61e 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -12,5 +12,7 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
+SHA1 (patch-cmake_config-ix.cmake) = 8eebe2c1f46777c2dcbcc1d838285a0e99744e7f
+SHA1 (patch-lib_safestack_safestack.cc) = 3cd461eb15de36126bd5dfe8e75f1334f8ec01b1
SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__posix.cc) = 36a89517584891a1a50536a681a5d42e99ef904d
SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__posix.h) = 89302e7b40901faaa471cdd76eefa222a0cc055d
diff --git a/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake b/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
new file mode 100644
index 0000000000..04a95dacad
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-cmake_config-ix.cmake
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- cmake/config-ix.cmake.orig 2017-08-08 20:43:41.000000000 +0000
++++ cmake/config-ix.cmake
+@@ -541,7 +541,7 @@ else()
+ endif()
+
+ if (COMPILER_RT_HAS_SANITIZER_COMMON AND SAFESTACK_SUPPORTED_ARCH AND
+- OS_NAME MATCHES "Darwin|Linux|FreeBSD")
++ OS_NAME MATCHES "Darwin|Linux|FreeBSD|NetBSD")
+ set(COMPILER_RT_HAS_SAFESTACK TRUE)
+ else()
+ set(COMPILER_RT_HAS_SAFESTACK FALSE)
diff --git a/compiler-rt-netbsd/patches/patch-lib_safestack_safestack.cc b/compiler-rt-netbsd/patches/patch-lib_safestack_safestack.cc
new file mode 100644
index 0000000000..5e1b7feef0
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_safestack_safestack.cc
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- lib/safestack/safestack.cc.orig 2017-07-04 05:53:20.000000000 +0000
++++ lib/safestack/safestack.cc
+@@ -21,7 +21,9 @@
+ #include <unistd.h>
+ #include <sys/resource.h>
+ #include <sys/types.h>
++#if !defined(__NetBSD__)
+ #include <sys/user.h>
++#endif
+
+ #include "interception/interception.h"
+ #include "sanitizer_common/sanitizer_common.h"
Home |
Main Index |
Thread Index |
Old Index