pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
compiler-rt-git: Implement GetMaxVirtualAddress() for NetBSD/amd64
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Jul 4 18:14:37 2017 +0200
Changeset: a55e370d73055dcb6540f74acb49f51ff1d7f8bb
Modified Files:
compiler-rt-git/distinfo
Added Files:
compiler-rt-git/patches/patch-lib_sanitizer__common_sanitizer__posix.cc
Log Message:
compiler-rt-git: Implement GetMaxVirtualAddress() for NetBSD/amd64
vmparam.h says:
VM_MAXUSER_ADDRESS (0x00007f8000000000 - PAGE_SIZE)
This differs from FreeBSD and Linux with 0x00007fffffffffffUL.
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=a55e370d73055dcb6540f74acb49f51ff1d7f8bb
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 +
.../patch-lib_sanitizer__common_sanitizer__posix.cc | 15 +++++++++++++++
2 files changed, 16 insertions(+)
diffs:
diff --git a/compiler-rt-git/distinfo b/compiler-rt-git/distinfo
index 6b1fea8ebe..a30000b32d 100644
--- a/compiler-rt-git/distinfo
+++ b/compiler-rt-git/distinfo
@@ -34,6 +34,7 @@ SHA1 (patch-lib_sanitizer__common_sanitizer__platform.h) = ffb31dccce9824c81f368
SHA1 (patch-lib_sanitizer__common_sanitizer__platform__interceptors.h) = b985ae53dafddfc5b4112eae65cab49176fc1989
SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__posix.cc) = 216496ec38f40a1c1d6905e006039860c4c1d48d
SHA1 (patch-lib_sanitizer__common_sanitizer__platform__limits__posix.h) = e08fe4e4ec66fa79c803b9c64014b921b37c01df
+SHA1 (patch-lib_sanitizer__common_sanitizer__posix.cc) = a561675ba1a7ef3b71d5c0af6521fb6a0f91f205
SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps.h) = 2bc9a7c32f0a7d18fe4d0d465b9b42547abbd989
SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__common.cc) = 5a407e496f92dfd2dd78a3b2582d7c695e2547fb
SHA1 (patch-lib_sanitizer__common_sanitizer__procmaps__netbsd.cc) = 83f8088cb990ebc5a85e319f1d4990d04196d67a
diff --git a/compiler-rt-git/patches/patch-lib_sanitizer__common_sanitizer__posix.cc b/compiler-rt-git/patches/patch-lib_sanitizer__common_sanitizer__posix.cc
new file mode 100644
index 0000000000..81b0723bb6
--- /dev/null
+++ b/compiler-rt-git/patches/patch-lib_sanitizer__common_sanitizer__posix.cc
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- lib/sanitizer_common/sanitizer_posix.cc.orig 2017-07-03 15:33:07.000000000 +0000
++++ lib/sanitizer_common/sanitizer_posix.cc
+@@ -90,7 +90,9 @@ static uptr GetKernelAreaSize() {
+
+ uptr GetMaxVirtualAddress() {
+ #if SANITIZER_WORDSIZE == 64
+-# if defined(__aarch64__) && SANITIZER_IOS && !SANITIZER_IOSSIM
++# if SANITIZER_NETBSD && defined(__x86_64__)
++ return 0x7f7ffffff000ULL; // (0x00007f8000000000 - PAGE_SIZE)
++# elif defined(__aarch64__) && SANITIZER_IOS && !SANITIZER_IOSSIM
+ // Ideally, we would derive the upper bound from MACH_VM_MAX_ADDRESS. The
+ // upper bound can change depending on the device.
+ return 0x200000000 - 1;
Home |
Main Index |
Thread Index |
Old Index