[PATCH] [PATCH v2] AARCH64: Add gcc Shadow Call Stack support

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Mar 1 01:28:32 PST 2022


On Mon, Feb 28, 2022 at 11:35 PM Nick Desaulniers
<ndesaulniers at google.com> wrote:
>
> Or simply add a #define for __noscs to include/linux/compiler-gcc.h
> with appropriate guard and leave the existing #ifndef in
> include/linux/compiler_types.h as is.  I'd prefer that when the
> compilers differ in terms of feature detection since it's as explicit
> as possible.

The idea is to avoid differing here to begin with, i.e. to use the
same code for both compilers (only whenever that is possible, of
course), thus having a single `#define` in a single file.

Do you think we will have to change in the future for some reason,
thus needing to split it again?

Cheers,
Miguel



More information about the linux-arm-kernel mailing list