Re: [PATCH v5 5/5] Add sancov plugin

2016-03-08 Thread Dmitry Vyukov
On Mon, Mar 7, 2016 at 10:07 PM, Kees Cook wrote: > On Sun, Mar 6, 2016 at 3:07 PM, Emese Revfy wrote: >> 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

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-08 Thread Dmitry Vyukov
On Mon, Mar 7, 2016 at 10:07 PM, Kees Cook wrote: > On Sun, Mar 6, 2016 at 3:07 PM, Emese Revfy wrote: >> 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

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:07:32 -0800 Kees Cook wrote: > > diff --git a/tools/gcc/sancov_plugin.c b/tools/gcc/sancov_plugin.c > > new file mode 100644 > > index 000..5a9179b > > --- /dev/null > > +++ b/tools/gcc/sancov_plugin.c > > @@ -0,0 +1,133 @@ > > +/* > > + *

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Emese Revfy
On Mon, 7 Mar 2016 13:07:32 -0800 Kees Cook wrote: > > diff --git a/tools/gcc/sancov_plugin.c b/tools/gcc/sancov_plugin.c > > new file mode 100644 > > index 000..5a9179b > > --- /dev/null > > +++ b/tools/gcc/sancov_plugin.c > > @@ -0,0 +1,133 @@ > > +/* > > + * Copyright 2011-2016 by Emese

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Kees Cook
On Sun, Mar 6, 2016 at 3:07 PM, Emese Revfy wrote: > 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). >

Re: [PATCH v5 5/5] Add sancov plugin

2016-03-07 Thread Kees Cook
On Sun, Mar 6, 2016 at 3:07 PM, Emese Revfy wrote: > 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