pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compiler-rt-netbsd: Add NetBSD support in sanitizer_unwind_linux_libcdep.cc



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Jun 26 19:50:50 2017 +0200
Changeset:	42b33fa8aebfae230dc74789b48b7693cbc0df61

Modified Files:
	compiler-rt-netbsd/distinfo
Added Files:
	compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc

Log Message:
compiler-rt-netbsd: Add NetBSD support in sanitizer_unwind_linux_libcdep.cc

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=42b33fa8aebfae230dc74789b48b7693cbc0df61

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 compiler-rt-netbsd/distinfo                        |  1 +
 ...er__common_sanitizer__unwind__linux__libcdep.cc | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diffs:
diff --git a/compiler-rt-netbsd/distinfo b/compiler-rt-netbsd/distinfo
index 64dc0c6cc3..01b27b13cc 100644
--- a/compiler-rt-netbsd/distinfo
+++ b/compiler-rt-netbsd/distinfo
@@ -39,6 +39,7 @@ SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps.h) = ec0b5c576463639a3ee66
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__common.cc) = 0c30494654cfc0294804434d40468f6f722a6786
 SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__netbsd.cc) = a7e97fdb92e166f9d1def5a169c1fd079d8bb40a
 SHA1 (patch-lib_sanitizer__common_sanitizer__syscall__generic.inc) = 73db63809d0972346e76cc6eaebf0d7d047f0bea
+SHA1 (patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc) = c9f6eca196262d33ca2848a85eae2a1908fbfa14
 SHA1 (patch-lib_tsan_rtl_tsan__interceptors.cc) = 80dfeebfd74f5470604b8cebfd90aae810a10cc0
 SHA1 (patch-lib_tsan_rtl_tsan__platform__linux.cc) = 3bb2c418b3d4bedad9014309abdd2cbad58b252c
 SHA1 (patch-lib_tsan_rtl_tsan__rtl__amd64.S) = 743e52c14f6aa21d0002b05a1be4f972dff0206f
diff --git a/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc
new file mode 100644
index 0000000000..aaf91fdce2
--- /dev/null
+++ b/compiler-rt-netbsd/patches/patch-lib_sanitizer__common_sanitizer__unwind__linux__libcdep.cc
@@ -0,0 +1,34 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc.orig	2017-06-03 23:53:57.000000000 +0000
++++ lib/sanitizer_common/sanitizer_unwind_linux_libcdep.cc
+@@ -8,11 +8,11 @@
+ //===----------------------------------------------------------------------===//
+ //
+ // This file contains the unwind.h-based (aka "slow") stack unwinding routines
+-// available to the tools on Linux, Android, and FreeBSD.
++// available to the tools on Linux, Android, NetBSD and FreeBSD.
+ //===----------------------------------------------------------------------===//
+ 
+ #include "sanitizer_platform.h"
+-#if SANITIZER_FREEBSD || SANITIZER_LINUX
++#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD
+ #include "sanitizer_common.h"
+ #include "sanitizer_stacktrace.h"
+ 
+@@ -78,7 +78,8 @@ void SanitizerInitializeUnwinder() {
+ }
+ #endif
+ 
+-#ifdef __arm__
++#if defined(__arm__) && !SANITIZER_NETBSD
++// NetBSD uses dwarf EH
+ #define UNWIND_STOP _URC_END_OF_STACK
+ #define UNWIND_CONTINUE _URC_NO_REASON
+ #else
+@@ -165,4 +166,4 @@ void BufferedStackTrace::SlowUnwindStack
+ 
+ }  // namespace __sanitizer
+ 
+-#endif  // SANITIZER_FREEBSD || SANITIZER_LINUX
++#endif  // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD


Home | Main Index | Thread Index | Old Index