Prevent initialization failure with newer (2.23+) glibc in use.
authorMaxim Ostapenko <m.ostapenko@partner.samsung.com>
Fri, 23 Sep 2016 07:40:55 +0000 (07:40 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 25 Apr 2017 17:46:34 +0000 (17:46 +0000)
commit531221d46ca5d2df942e8c8510d48ee8110c27c3
tree78eb446cfde10efec11957f00c290b1b79f1d505
parent7e02171cf23320380115f794f03cbcb7f79dbf3f
Prevent initialization failure with newer (2.23+) glibc in use.

This patch is pretty the same as http://reviews.llvm.org/D20235 that we used
for ASan. Using the same hack for MSan fixes its initialization with newer
Glibc in use.

Differential Revision: https://reviews.llvm.org/D24736

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282232 91177308-0d34-0410-b5e6-96231b3b80d8

Gbp-Pq: Name upstream-msan-prevent-initialization-failure.diff
compiler-rt/lib/asan/asan_malloc_linux.cc
compiler-rt/lib/msan/msan_interceptors.cc