pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
llvm-git: Include asam memory regions for NetBSD/amd64
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Tue Jul 4 17:34:51 2017 +0200
Changeset: 14f76dd5cea8be1c778dc5a0d62884f8da9fbaa5
Modified Files:
llvm-git/distinfo
Added Files:
llvm-git/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp
Log Message:
llvm-git: Include asam memory regions for NetBSD/amd64
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=14f76dd5cea8be1c778dc5a0d62884f8da9fbaa5
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
llvm-git/distinfo | 1 +
...Transforms_Instrumentation_AddressSanitizer.cpp | 29 ++++++++++++++++++++++
2 files changed, 30 insertions(+)
diffs:
diff --git a/llvm-git/distinfo b/llvm-git/distinfo
index 7931384fd5..8d02f6f3d5 100644
--- a/llvm-git/distinfo
+++ b/llvm-git/distinfo
@@ -12,3 +12,4 @@ 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-lib_Transforms_Instrumentation_AddressSanitizer.cpp) = 1a9cd5b44191b8b75e25ae3b732d2c05942a49e9
diff --git a/llvm-git/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp b/llvm-git/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp
new file mode 100644
index 0000000000..602e242e32
--- /dev/null
+++ b/llvm-git/patches/patch-lib_Transforms_Instrumentation_AddressSanitizer.cpp
@@ -0,0 +1,29 @@
+$NetBSD$
+
+--- lib/Transforms/Instrumentation/AddressSanitizer.cpp.orig 2017-05-24 03:56:48.000000000 +0000
++++ lib/Transforms/Instrumentation/AddressSanitizer.cpp
+@@ -80,6 +80,7 @@ static const uint64_t kMIPS64_ShadowOffs
+ static const uint64_t kAArch64_ShadowOffset64 = 1ULL << 36;
+ static const uint64_t kFreeBSD_ShadowOffset32 = 1ULL << 30;
+ static const uint64_t kFreeBSD_ShadowOffset64 = 1ULL << 46;
++static const uint64_t kNetBSD_ShadowOffset64 = 1ULL << 40;
+ static const uint64_t kPS4CPU_ShadowOffset64 = 1ULL << 40;
+ static const uint64_t kWindowsShadowOffset32 = 3ULL << 28;
+ // The shadow memory space is dynamically allocated.
+@@ -394,6 +395,7 @@ static ShadowMapping getShadowMapping(Tr
+ bool IsAndroid = TargetTriple.isAndroid();
+ bool IsIOS = TargetTriple.isiOS() || TargetTriple.isWatchOS();
+ bool IsFreeBSD = TargetTriple.isOSFreeBSD();
++ bool IsNetBSD = TargetTriple.isOSNetBSD();
+ bool IsPS4CPU = TargetTriple.isPS4CPU();
+ bool IsLinux = TargetTriple.isOSLinux();
+ bool IsPPC64 = TargetTriple.getArch() == llvm::Triple::ppc64 ||
+@@ -438,6 +440,8 @@ static ShadowMapping getShadowMapping(Tr
+ Mapping.Offset = kSystemZ_ShadowOffset64;
+ else if (IsFreeBSD)
+ Mapping.Offset = kFreeBSD_ShadowOffset64;
++ else if (IsNetBSD)
++ Mapping.Offset = kNetBSD_ShadowOffset64;
+ else if (IsPS4CPU)
+ Mapping.Offset = kPS4CPU_ShadowOffset64;
+ else if (IsLinux && IsX86_64) {
Home |
Main Index |
Thread Index |
Old Index