randstruct: Move seed generation into scripts/basic/
authorKees Cook <keescook@chromium.org>
Tue, 3 May 2022 20:55:02 +0000 (13:55 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 8 May 2022 08:33:07 +0000 (01:33 -0700)
commitbe2b34fa9be31c60a95989f984c9a5d40cd781b6
treea1b5f247ac20de2866d52ea68930b47268366efc
parent613f4b3ed7902d1dbbc6ade6401e452a63dfbc21
randstruct: Move seed generation into scripts/basic/

To enable Clang randstruct support, move the structure layout
randomization seed generation out of scripts/gcc-plugins/ into
scripts/basic/ so it happens early enough that it can be used by either
compiler implementation. The gcc-plugin still builds its own header file,
but now does so from the common "randstruct.seed" file.

Cc: linux-hardening@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220503205503.3054173-6-keescook@chromium.org
Documentation/dontdiff
Documentation/kbuild/reproducible-builds.rst
include/linux/vermagic.h
scripts/basic/.gitignore
scripts/basic/Makefile
scripts/gcc-plugins/Makefile
scripts/gcc-plugins/gen-random-seed.sh [deleted file]
scripts/gen-randstruct-seed.sh [new file with mode: 0755]
security/Kconfig.hardening