tsan: support mmap(MAP_32BIT)
authorDmitry Vyukov <dvyukov@google.com>
Fri, 24 Oct 2014 17:07:29 +0000 (17:07 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 24 Oct 2014 17:07:29 +0000 (17:07 +0000)
commite9a5f03716f937380074d8617cddb833bffede1f
tree4290459101aadf48c3044301b695afcef0cea198
parent957efc23bb87d341a1b478d87a48bb888c2d4068
tsan: support mmap(MAP_32BIT)
Allow user memory in the first TB of address space.
This also enabled non-pie binaries and freebsd.
Fixes issue:
https://code.google.com/p/thread-sanitizer/issues/detail?id=5

llvm-svn: 220571
compiler-rt/lib/sanitizer_common/sanitizer_allocator.h
compiler-rt/lib/tsan/rtl/tsan_platform.h
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc
compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc
compiler-rt/lib/tsan/rtl/tsan_rtl.cc
compiler-rt/lib/tsan/rtl/tsan_rtl.h
compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc
compiler-rt/test/tsan/map32bit.cc [new file with mode: 0644]