HomePhabricator

[ASan] Make insertion of version mismatch guard configurable

Authored by yln on Aug 28 2019, 1:40 PM.

Description

[ASan] Make insertion of version mismatch guard configurable

By default ASan calls a versioned function
__asan_version_mismatch_check_vXXX from the ASan module constructor to
check that the compiler ABI version and runtime ABI version are
compatible. This ensures that we get a predictable linker error instead
of hard-to-debug runtime errors.

Sometimes, however, we want to skip this safety guard. This new command
line option allows us to do just that.

rdar://47891956

Reviewed By: kubamracek

Differential Revision: https://reviews.llvm.org/D66826

llvm-svn: 370258

Details

Committed
ylnAug 28 2019, 1:40 PM
Reviewer
kubamracek
Differential Revision
D66826: [ASan] Make insertion of version mismatch guard configurable
Parents
rGf025968bccde: Ignore object files that lack coverage information.
Branches
Unknown
Tags
Unknown