pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiler-rt-git: Add NetBSD support to address sanitizer process mapping facilities
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Jul 4 18:04:02 2017 +0200
Changeset: b3f1fd0648f358e73ffb32a53dd9516614cede5d
Modified Files:
compiler-rt-git/distinfo
Added Files:
compiler-rt-git/patches/patch-lib_asan_asan__mapping.h
Log Message:
compiler-rt-git: Add NetBSD support to address sanitizer process mapping facilities
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=b3f1fd0648f358e73ffb32a53dd9516614cede5d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
compiler-rt-git/distinfo | 1 +
.../patches/patch-lib_asan_asan__mapping.h | 37 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
diffs:
diff --git a/compiler-rt-git/distinfo b/compiler-rt-git/distinfo
index a57ce0ffff..6b1fea8ebe 100644
--- a/compiler-rt-git/distinfo
+++ b/compiler-rt-git/distinfo
@@ -17,6 +17,7 @@ SHA1 (patch-lib_asan_asan__interceptors.cc) = 9786a54c62e081c7194efa26139f8539ad
SHA1 (patch-lib_asan_asan__interceptors.h) = 520419376759f2991c6f74f4c2a5ef62851d7838
SHA1 (patch-lib_asan_asan__linux.cc) = 31dd5c3978d64ccc28c8af037a967c2360d71cff
SHA1 (patch-lib_asan_asan__malloc__linux.cc) = 8125ba85983cab81779a2ebe0849ba3e65040eb4
+SHA1 (patch-lib_asan_asan__mapping.h) = 73f5f33e946868b4780864e633916376b11b16f1
SHA1 (patch-lib_asan_asan__stack.h) = 58aa9e67cf2a92863fd3bd545074dff136bed7c5
SHA1 (patch-lib_asan_scripts_asan__symbolize.py) = 95024c8d49fdcbdbf5ccc9013e54ad9b3f469e14
SHA1 (patch-lib_interception_interception.h) = e6826deb85420ac5c7d9594d5d4364767d22389f
diff --git a/compiler-rt-git/patches/patch-lib_asan_asan__mapping.h b/compiler-rt-git/patches/patch-lib_asan_asan__mapping.h
new file mode 100644
index 0000000000..0d32f9db69
--- /dev/null
+++ b/compiler-rt-git/patches/patch-lib_asan_asan__mapping.h
@@ -0,0 +1,37 @@
+$NetBSD$
+
+--- lib/asan/asan_mapping.h.orig 2017-07-03 15:33:06.000000000 +0000
++++ lib/asan/asan_mapping.h
+@@ -115,6 +115,13 @@
+ // || `[0x40000000, 0x47ffffff]` || LowShadow ||
+ // || `[0x00000000, 0x3fffffff]` || LowMem ||
+ //
++// Shadow mapping on NetBSD/x86-64 with SHADOW_OFFSET == 0x400000000000:
++// || `[0x4feffffffe01, 0x7f7ffffff000]` || HighMem ||
++// || `[0x49fdffffffc0, 0x4feffffffe00]` || HighShadow ||
++// || `[0x480000000000, 0x49fdffffffbf]` || ShadowGap ||
++// || `[0x400000000000, 0x47ffffffffff]` || LowShadow ||
++// || `[0x000000000000, 0x3fffffffffff]` || LowMem ||
++//
+ // Default Windows/i386 mapping:
+ // (the exact location of HighShadow/HighMem may vary depending
+ // on WoW64, /LARGEADDRESSAWARE, etc).
+@@ -140,6 +147,7 @@ static const u64 kPPC64_ShadowOffset64 =
+ static const u64 kSystemZ_ShadowOffset64 = 1ULL << 52;
+ static const u64 kFreeBSD_ShadowOffset32 = 1ULL << 30; // 0x40000000
+ static const u64 kFreeBSD_ShadowOffset64 = 1ULL << 46; // 0x400000000000
++static const u64 kNetBSD_ShadowOffset64 = 1ULL << 46; // 0x400000000000
+ static const u64 kWindowsShadowOffset32 = 3ULL << 28; // 0x30000000
+
+ #define SHADOW_SCALE kDefaultShadowScale
+@@ -176,8 +184,8 @@ static const u64 kWindowsShadowOffset32
+ # define SHADOW_OFFSET kPPC64_ShadowOffset64
+ # elif defined(__s390x__)
+ # define SHADOW_OFFSET kSystemZ_ShadowOffset64
+-# elif SANITIZER_FREEBSD
+-# define SHADOW_OFFSET kFreeBSD_ShadowOffset64
++# elif SANITIZER_NETBSD
++# define SHADOW_OFFSET kNetBSD_ShadowOffset64
+ # elif SANITIZER_MAC
+ # define SHADOW_OFFSET kDefaultShadowOffset64
+ # elif defined(__mips64)
Home |
Main Index |
Thread Index |
Old Index