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
This commit is contained in:
Mitch Phillips 2019-10-29 17:04:22 -07:00
parent 765fe7a501
commit d5bd5773e3
1 changed files with 1 additions and 1 deletions

View File

@ -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 {