[ASan] Shared optimized callbacks implementation.
authorKirill Stoimenov <kstoimenov@google.com>
Wed, 17 Nov 2021 22:39:48 +0000 (22:39 +0000)
committerKirill Stoimenov <kstoimenov@google.com>
Thu, 9 Dec 2021 00:00:08 +0000 (00:00 +0000)
commitf71c553a30cc52c0b4a6abbaa82ce97c30c13979
treed2bc39caa972e81e22a59a6f0740b4f0d1bdfde8
parent017ef7854972e8ad9386bf8eaf4bde7a8123d0ff
[ASan] Shared optimized callbacks implementation.

This change moves optimized callbacks from each .o file to compiler-rt. Instead of using code generation it uses direct assembly implementation. Please note that the 'or' version is not implemented and it will produce unresolved external if somehow 'or' version is requested.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D114558
compiler-rt/lib/asan/CMakeLists.txt
compiler-rt/lib/asan/asan_interface.inc
compiler-rt/lib/asan/asan_rtl_x86_64.S [new file with mode: 0644]
compiler-rt/lib/asan/tests/asan_noinst_test.cpp
compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp