Change SANITIZE_TARGET refs from 'coverage' to 'fuzzer'.
Cleanup of references to 'coverage' in build files. Part of a larger
cleanup to make fuzzing work again in the Android build tree.
Also fixed a test issue with emulated TLS with the new changes, and
removed libc.so fuzzer support until a linked bug is fixed
(b/132640749).
Bug: 121042685
Test: With all patches in the bug merged: mmma bionic
This is the qt-dev-plus-aosp cherrypick of aosp/954684. See the AOSP
commit for further information.
Change-Id: I592352fe9210ff811a2660a88cbbfe48d70a1e57
diff --git a/tests/Android.bp b/tests/Android.bp
index db02d75..cb46ebd 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -241,6 +241,15 @@
cflags: [
"-fno-emulated-tls",
],
+ // With fuzzer builds, compiler instrumentation generates a reference to the
+ // __sancov_lowest_stack variable, which (for now) is defined by the fuzzer
+ // library as an emutls symbol. The -fno-emulated-tls flag above configures
+ // the compiler to reference an ordinary ELF TLS __sancov_lowest_stack
+ // symbol instead, which isn't defined. Disable the fuzzer for this test
+ // until the platform is switched to ELF TLS.
+ sanitize: {
+ fuzzer: false,
+ },
}
cc_test_library {
@@ -262,6 +271,15 @@
cflags: [
"-fno-emulated-tls",
],
+ // With fuzzer builds, compiler instrumentation generates a reference to the
+ // __sancov_lowest_stack variable, which (for now) is defined by the fuzzer
+ // library as an emutls symbol. The -fno-emulated-tls flag above configures
+ // the compiler to reference an ordinary ELF TLS __sancov_lowest_stack
+ // symbol instead, which isn't defined. Disable the fuzzer for this test
+ // until the platform is switched to ELF TLS.
+ sanitize: {
+ fuzzer: false,
+ },
}
// -----------------------------------------------------------------------------