[compiler-rt] r310247 - Add NetBSD support in asan_errors.cc
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 03:58:48 PDT 2017
Author: kamil
Date: Mon Aug 7 03:58:48 2017
New Revision: 310247
URL: http://llvm.org/viewvc/llvm-project?rev=310247&view=rev
Log:
Add NetBSD support in asan_errors.cc
Summary:
Part of the code inspired by the original work on libsanitizer in GCC 5.4 by Christos Zoulas.
Sponsored by <The NetBSD Foundation>
Reviewers: joerg, fjricci, vitalybuka, filcab, kcc
Reviewed By: vitalybuka
Subscribers: llvm-commits, kubamracek, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D36374
Modified:
compiler-rt/trunk/lib/asan/asan_errors.cc
Modified: compiler-rt/trunk/lib/asan/asan_errors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_errors.cc?rev=310247&r1=310246&r2=310247&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_errors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_errors.cc Mon Aug 7 03:58:48 2017
@@ -59,7 +59,7 @@ static void MaybeDumpRegisters(void *con
}
static void MaybeReportNonExecRegion(uptr pc) {
-#if SANITIZER_FREEBSD || SANITIZER_LINUX
+#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD
MemoryMappingLayout proc_maps(/*cache_enabled*/ true);
MemoryMappedSegment segment;
while (proc_maps.Next(&segment)) {
More information about the llvm-commits
mailing list