This is an archive of the discontinued LLVM Phabricator instance.

[sancov] MachO indirect symbols support.
ClosedPublic

Authored by aizatsky on Aug 9 2016, 4:28 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 67433.Aug 9 2016, 4:28 PM
aizatsky retitled this revision from to [sancov] MachO indirect symbols support..
aizatsky updated this object.
aizatsky added a project: Restricted Project.
aizatsky added a subscriber: llvm-commits.
vitalybuka edited edge metadata.Aug 9 2016, 5:17 PM

lgtm

tools/sancov/sancov.cc
350 ↗(On Diff #67433)

Why not just J < Dysymtab.nindirectsyms

387 ↗(On Diff #67433)

Can you combine if and fastest test in-front of slowest?

if (!(Symbol.getFlags() & object::BasicSymbolRef::SF_Undefined) && isSanitizerCovCall(Name))

Result.insert(Address);
aizatsky updated this revision to Diff 67746.Aug 11 2016, 2:03 PM
aizatsky marked 2 inline comments as done.
aizatsky edited edge metadata.

nitz

vitalybuka accepted this revision.Aug 11 2016, 4:26 PM
vitalybuka edited edge metadata.
This revision is now accepted and ready to land.Aug 11 2016, 4:26 PM
This revision was automatically updated to reflect the committed changes.