HomePhabricator

[ASan] Allow new/delete replacement by making interceptors weak

Authored by hctim on Apr 9 2021, 1:46 PM.

Description

[ASan] Allow new/delete replacement by making interceptors weak

ASan declares these functions as strongly-defined, which results in
'duplicate symbol' errors when trying to replace them in user code when
linking the runtimes statically.

Reviewed By: eugenis

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

Details