Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22149

New option in GCC : -fsanitize=shadow-call-stack

$
0
0

I have been working with the latest release of gcc (GCC 12.1, released May 6, 2022).

There is a new command-line option : -fsanitize=shadow-call-stack.

The documentation states:

GCC now supports the ShadowCallStack sanitizer, which can be enabledusing the command-line option -fsanitize=shadow-call-stack. Thissanitizer currently only works on AArch64 targets and it requires anenvironment in which all code has been compiled with -ffixed-r18. Itsprimary initial user is the Linux kernel.

I think it could be useful for one of the projects I am working on, but I would like to make sure I understand better the exact behaviour of this option. I found the documentation a little bit lacking. Can anyone explain its behaviour?


Viewing all articles
Browse latest Browse all 22149

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>