[PATCH] [Msan] Fix the mmap_below_shadow.cc test to pass on FreeBSD

Phabricator reviews at reviews.llvm.org
Wed May 6 02:35:10 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9462

Files:
  compiler-rt/trunk/test/msan/mmap_below_shadow.cc

Index: compiler-rt/trunk/test/msan/mmap_below_shadow.cc
===================================================================
--- compiler-rt/trunk/test/msan/mmap_below_shadow.cc
+++ compiler-rt/trunk/test/msan/mmap_below_shadow.cc
@@ -15,7 +15,10 @@
 
 int main(void) {
   // Hint address just below shadow.
-#if defined(__x86_64__)
+#if defined(__FreeBSD__) && defined(__x86_64__)
+  uintptr_t hint = 0x0f0000000000ULL;
+  const uintptr_t app_start = 0x000000000000ULL;
+#elif defined(__x86_64__)
   uintptr_t hint = 0x4f0000000000ULL;
   const uintptr_t app_start = 0x600000000000ULL;
 #elif defined (__mips64)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9462.25025.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150506/f5aa1efb/attachment.bin>


More information about the llvm-commits mailing list