This is an archive of the discontinued LLVM Phabricator instance.

Add weak definitions of trace-cmp hooks to dfsan
ClosedPublic

Authored by kcc on May 31 2018, 1:28 PM.

Details

Summary

This allows to build and link the code with e.g.
-fsanitize=dataflow -fsanitize-coverage=trace-pc-guard,pc-table,func,trace-cmp
w/o providing (all) the definitions of trace-cmp hooks.

This is similar to dummy hooks provided by asan/ubsan/msan for the same purpose,
except that some of the hooks need to have the __dfsw_ prefix
since we need dfsan to replace them.

Diff Detail

Event Timeline

kcc created this revision.May 31 2018, 1:28 PM
Herald added subscribers: Restricted Project, delcypher. · View Herald TranscriptMay 31 2018, 1:28 PM
pcc accepted this revision.Jun 1 2018, 2:30 PM

LGTM

This revision is now accepted and ready to land.Jun 1 2018, 2:30 PM
This revision was automatically updated to reflect the committed changes.