Skip to content
Snippets Groups Projects
Commit e57451ad authored by Kostya Serebryany's avatar Kostya Serebryany
Browse files

[sanitizer-coverage] make trace-pc-guard and indirect-call work together

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281665 91177308-0d34-0410-b5e6-96231b3b80d8
parent d238c577
No related branches found
No related tags found
No related merge requests found
......@@ -323,8 +323,8 @@ and can be used with `AFL <http://lcamtuf.coredump.cx/afl>`__.
Tracing PCs with guards
=======================
Another *experimental* feature that tries to combine `trace-pc`,
`8bit-counters` and boolean coverage
Another *experimental* feature that tries to combine the functionality of `trace-pc`,
`8bit-counters` and boolean coverage.
With ``-fsanitize-coverage=trace-pc-guard`` the compiler will insert the following code
on every edge:
......@@ -338,6 +338,9 @@ Every edge will have its own 1-byte `guard_variable`.
All such guard variables will reside in a dedicated section
(i.e. they essentially form an array).
Similarly to `trace-pc,indirect-calls`, with `trace-pc-guards,indirect-calls`
``__sanitizer_cov_trace_pc_indirect(void *callee)`` will be inserted on every indirect call.
The compler will also insert a module constructor that will call
.. code-block:: c++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment