diff options
author | Sami Tolvanen <[email protected]> | 2022-04-05 15:16:18 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-04-13 12:16:00 -0700 |
commit | e6f3b3c9c109ed57230996cf4a4c1b8ae7e36a81 (patch) | |
tree | 8769c4830c2b26931ca5e5ab664cd1316bf4aab7 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 75c1182e18f4a66bbd2c91511b6b629dac6a27dc (diff) |
cfi: Use __builtin_function_start
Clang 14 added support for the __builtin_function_start function,
which allows us to implement the function_nocfi macro without
architecture-specific inline assembly and in a way that also works
with static initializers.
Change CONFIG_CFI_CLANG to depend on Clang >= 14, define
function_nocfi using __builtin_function_start, and remove the arm64
inline assembly implementation.
Link: https://github.com/llvm/llvm-project/commit/ec2e26eaf63558934f5b73a6e530edc453cf9508
Link: https://github.com/ClangBuiltLinux/linux/issues/1353
Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Acked-by: Will Deacon <[email protected]> # arm64
Reviewed-by: Nathan Chancellor <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions