[asan] Rename the ABI versioning symbol to '__asan_version_mismatch_check' instead...
authorKuba Brecka <kuba.brecka@gmail.com>
Thu, 23 Jul 2015 10:54:06 +0000 (10:54 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Thu, 23 Jul 2015 10:54:06 +0000 (10:54 +0000)
commit00a917ca7c3f706ac5161f598ca6a2fa08d3c6ab
treea848b19efff0fcbcc28aadcd500c938d71a1349e
parentdedb07fcbe6a2755ce1a8ba2b0b8357951198707
[asan] Rename the ABI versioning symbol to '__asan_version_mismatch_check' instead of abusing '__asan_init'

We currently version `__asan_init` and when the ABI version doesn't match, the linker gives a `undefined reference to '__asan_init_v5'` message. From this, it might not be obvious that it's actually a version mismatch error. This patch makes the error message much clearer by changing the name of the undefined symbol to be `__asan_version_mismatch_check_xxx` (followed by the version string). We obviously don't want the initializer to be named like that, so it's a separate symbol that is used only for the purpose of version checking.

Reviewed at http://reviews.llvm.org/D11004

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243003 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/ModuleUtils.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Utils/ModuleUtils.cpp
test/Instrumentation/AddressSanitizer/basic.ll