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>
Fri, 13 Oct 2017 21:42:29 +0000 (22:42 +0100)
commitf801b514a4f624bfcd376b79bd4ae55b3415ed2a
tree603670f9e51c6ae861ae470a9b5f43d84007b272
parent1ea01e0515e6e7af60be2a88fc1821b10a936434
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