From d5bd5773e3daa397c075c9f67ae864b5d804f464 Mon Sep 17 00:00:00 2001 From: Mitch Phillips Date: Tue, 29 Oct 2019 17:04:22 -0700 Subject: [PATCH] Use unstripped binaries in fuzz target packaging. Unstripped binaries allow for online symbolization, and offline symbolization using the debug info in the binary. Debug information isn't stripped for host binaries, but is for target. Target should also contain debugging info. Bug: N/A Test: m fuzz && # Check that fuzz targets in the fuzz-*.zip package have debug info. Change-Id: Ibd3002674d519e927340a50dfdfbf44f2d809d58 --- cc/fuzz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/fuzz.go b/cc/fuzz.go index 2c3b973e4..7fee84e17 100644 --- a/cc/fuzz.go +++ b/cc/fuzz.go @@ -259,7 +259,7 @@ func (s *fuzzPackager) GenerateBuildActions(ctx android.SingletonContext) { // The executable. archDirs[archDir] = append(archDirs[archDir], - fileToZip{ccModule.outputFile.Path(), ccModule.Name()}) + fileToZip{ccModule.UnstrippedOutputFile(), ccModule.Name()}) // The corpora. for _, corpusEntry := range fuzzModule.corpus {