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
Change-Id: I592352fe9210ff811a2660a88cbbfe48d70a1e57
Merged-In: I592352fe9210ff811a2660a88cbbfe48d70a1e57
diff --git a/tests/Android.bp b/tests/Android.bp
index d65780c..e0faa5f 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -235,6 +235,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 {
@@ -256,6 +265,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,
+ },
}
// -----------------------------------------------------------------------------