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)
committerGianfranco Costamagna <locutusofborg@debian.org>
Fri, 2 Jun 2017 13:14:18 +0000 (13:14 +0000)
commit3baf43666909679968399380a939bedcfb910616
tree529740545b2599779d78c1c1983c0d29723a3533
parent2c76e8d48e26a180aa18178305ee75ae7c60b39e
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