[asan] call __asan_init from .preinit_array. This simplifies __asan_init vs malloc...
authorKostya Serebryany <kcc@google.com>
Fri, 9 Dec 2011 22:09:32 +0000 (22:09 +0000)
committerKostya Serebryany <kcc@google.com>
Fri, 9 Dec 2011 22:09:32 +0000 (22:09 +0000)
commit25a8b809a074941e52cf357674b4382437aabb08
tree30b4b2a50b25b020990e89291d6f823dfac1a3d2
parent840bf7eda7c81059a0aae9abd51262147c60d814
[asan] call __asan_init from .preinit_array. This simplifies __asan_init vs malloc chicken-and-egg situation on Android and probably on other flavours of Linux. Patch by eugenis@google.com.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146284 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/AddressSanitizer.cpp