Do we want to add -fsanitize=function?

Jakub Jelinek jakub@redhat.com
Tue Jan 14 16:13:00 GMT 2020


On Tue, Jan 14, 2020 at 04:15:54PM +0100, Martin Liška wrote:
> On 1/14/20 3:00 PM, Jakub Jelinek wrote:
> > But then the compiler should just fail if you mix the two, rather than
> > emitting something that doesn't work at all.
> > Or better fix the design, so that it can grok an endbr64 together with
> > the following jump as another magic.
> 
> Sure. One can make an error when these 2 options are mixed together.
> So the question still remains opened, do we want to implement the
> sanitizer feature?

IMHO not for GCC 10, for GCC 11, it really sounds too hackish, so unsure.
It should at least cover more than one arch and have these issues like CET
etc. discussed upstream.

	Jakub



More information about the Gcc mailing list