Otherwise, at least on Mac, the linker eliminates unused symbols which
causes libFuzzer to error out due to a mismatch of the sizes of coverage tables.
Issue in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=892167
Differential D53113
[SanitizerCoverage] Make Inline8bit and TracePC counters dead stripping resistant. Dor1s on Oct 10 2018, 3:42 PM. Authored by
Details Otherwise, at least on Mac, the linker eliminates unused symbols which Issue in Chromium: https://bugs.chromium.org/p/chromium/issues/detail?id=892167
Diff Detail
Event Timeline
Comment Actions The test is added in https://reviews.llvm.org/D53114, similarly to the existing https://github.com/llvm-mirror/compiler-rt/blob/master/test/fuzzer/gc-sections.test Comment Actions Looks good to me! I think we also had a hook in LLVM somewhere *not* to run -Wl,-dead_strip, maybe it could be disabled now. Comment Actions Move GlobalsToAppendToUsed.push_back call into CreateFunctionLocalArrayInSection
|
Maybe do the append in CreateFunctionLocalArrayInSection to save some LOC?