mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
f68022ae0a
The CFI test uses the branch-protection=none compiler attribute to
disable PAC return address protection on a function. While newer GCC
versions support this attribute, older versions (GCC 7 and 8) instead
supported the sign-return-address=none attribute, leading to a build
failure when the test is built with older compilers. Fix it by checking
which attribute is supported and using the correct one.
Fixes:
|
||
---|---|---|
.. | ||
bugs.c | ||
cfi.c | ||
core.c | ||
fortify.c | ||
heap.c | ||
lkdtm.h | ||
Makefile | ||
perms.c | ||
powerpc.c | ||
refcount.c | ||
rodata.c | ||
stackleak.c | ||
usercopy.c |