randstruct: Enable Clang support
authorKees Cook <keescook@chromium.org>
Tue, 3 May 2022 20:55:03 +0000 (13:55 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 8 May 2022 08:33:07 +0000 (01:33 -0700)
commit035f7f87b7295a342577aebd7b5b451f1e2a353c
treee7c51ad07b1fa5f4c2f870c2045b8d27c5b3e1ed
parentbe2b34fa9be31c60a95989f984c9a5d40cd781b6
randstruct: Enable Clang support

Clang 15 will support randstruct via the -frandomize-layout-seed-file=...
option. Update the Kconfig and Makefile to recognize this feature.

Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220503205503.3054173-7-keescook@chromium.org
scripts/Makefile.randstruct
security/Kconfig.hardening