Add sancov plugin
The sancov gcc plugin inserts a __sanitizer_cov_trace_pc() call at the start of basic blocks. This plugin is a helper plugin for the kcov feature. It supports all gcc versions with plugin support (from gcc-4.5 on). It is based on the gcc commit "Add fuzzing coverage support" by Dmitry Vyukov (https://gcc.gnu.org/viewcvs/gcc?limit_changes=0&view=revision&revision=231296 ). Signed-off-by:Emese Revfy <re.emese@gmail.com> Acked-by:
Kees Cook <keescook@chromium.org> Signed-off-by:
Michal Marek <mmarek@suse.com>
Showing
- Makefile 1 addition, 9 deletionsMakefile
- arch/Kconfig 9 additions, 0 deletionsarch/Kconfig
- arch/x86/purgatory/Makefile 2 additions, 0 deletionsarch/x86/purgatory/Makefile
- lib/Kconfig.debug 2 additions, 0 deletionslib/Kconfig.debug
- scripts/Makefile.gcc-plugins 20 additions, 1 deletionscripts/Makefile.gcc-plugins
- scripts/gcc-plugins/Makefile 6 additions, 0 deletionsscripts/gcc-plugins/Makefile
- scripts/gcc-plugins/sancov_plugin.c 144 additions, 0 deletionsscripts/gcc-plugins/sancov_plugin.c
Loading
Please register or sign in to comment