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>
Sun, 18 Jun 2017 17:12:15 +0000 (18:12 +0100)
commit8d6e7efc95a5c25419c18b3d5b5d2bae7d833149
treeb947a2f92a77ae196f11d727fd16adbc486ef87e
parentfa335af61d6f1c110204ba7b438f6ff10500f129
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