tsan: fix build after 287632
authorDmitry Vyukov <dvyukov@google.com>
Tue, 22 Nov 2016 11:09:35 +0000 (11:09 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 22 Nov 2016 11:09:35 +0000 (11:09 +0000)
commit9c5bab23ee50abcb0d824fa75e0774fe39bc598b
treeb4f3d9c1b76fb908c92b4a730880a3e748bd76c5
parentb920aa0fae2db6b12e6fbca62fb112c8cf1abf99
tsan: fix build after 287632

1. Mac does not have MAP_32BIT.
Define it to 0 if it is not defined.

2. We are lacking nolibc stub for ListOfModules::init.
Add it.

llvm-svn: 287634
compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cc
compiler-rt/test/tsan/ignore_lib5.cc