Fix missing symbols in enable_fuzztest_fuzz

fuzztest doesn't yet support multiple DSOs, so we don't allow
enable_fuzztest_fuzz for component builds. But even in non-component
builds, a single DSO is built and loaded, which then complains with
missing __sanitizer_cov_8bit_counters_init symbols.

Build weak sancov stubs into all binaries to avoid this.

Credit to paulsemel@ for figuring out the right fix.

Bug: 1498755
Change-Id: I7ff2c5a9d1605eeac777fa5e5f3bdb8d0ebf39ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5000388
Commit-Queue: Adrian Taylor <adetaylor@chromium.org>
Reviewed-by: Paul Semel <paulsemel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1218826}
NOKEYCHECK=True
GitOrigin-RevId: 5c586025dabbf8fad553e65b72c82e6338240c5d
1 file changed
tree: a344deaa14ad1a6127aee4f030143d57329504de
  1. BUILD.gn
  2. OWNERS
  3. README.chromium