pw_tokenizer: Disable linker script when fuzzing

Don't add the tokenized entry sections to the linker script when
fuzzing. This causes linking problems because the ELF files for fuzzing
don't have a .strtab section. The tokenized string ELF entries aren't
relevant for fuzzing, so drop them.

Change-Id: I9a99603d222d4209cfe0efdcf68bb3eee4bb6740
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/31220
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
diff --git a/pw_tokenizer/BUILD.gn b/pw_tokenizer/BUILD.gn
index d4f3708..e4d182b 100644
--- a/pw_tokenizer/BUILD.gn
+++ b/pw_tokenizer/BUILD.gn
@@ -45,7 +45,7 @@
       "-T",
       rebase_path("pw_tokenizer_linker_sections.ld"),
     ]
-  } else if (current_os == "linux") {
+  } else if (current_os == "linux" && !pw_toolchain_OSS_FUZZ_ENABLED) {
     # When building for Linux, the linker provides a default linker script.
     # The add_tokenizer_sections_to_default_script.ld wrapper includes the
     # pw_tokenizer_linker_sections.ld script in a way that appends to the the