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

Viktor Kutuzov vkutuzov at accesssoftek.com
Sat May 2 09:03:56 PDT 2015


Hi kcc, samsonov, eugenis,

http://reviews.llvm.org/D9462

Files:
  test/msan/mmap_below_shadow.cc

Index: test/msan/mmap_below_shadow.cc
===================================================================
--- test/msan/mmap_below_shadow.cc
+++ 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.24861.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150502/1bdcfbb3/attachment.bin>


More information about the llvm-commits mailing list