This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] llvm-objdump doesn't show the same info that objdump on DSO.
ClosedPublic

Authored by mpividori on Jan 31 2017, 9:36 PM.

Details

Summary

When disassembling a DSO, for calls to functions from the PLT, llvm-objdump only prints the offset from the PLT, like: <.plt+0x30>.

While objdump and dumpbin print the function name, like: <__sanitizer_cov_trace_pc_guard@plt>

When analyzing the coverage in libFuzzer we dissasemble and look for the calls to __sanitizer_cov_trace_pc_guard.

So, this fails when using llvm-objdump on a DSO.

This was the reason why coverage.test was failing on Windows:

Diff Detail

Event Timeline

mpividori created this revision.Jan 31 2017, 9:36 PM
This revision was automatically updated to reflect the committed changes.