mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
42640b134b
The host shared library rules are currently implemented in scripts/Makefile.host, but actually GCC-plugin is the only user of them. (The VDSO .so files are built for the target by different build rules) Hence, they do not need to be treewide available. Move all the relevant build rules to scripts/gcc-plugins/Makefile. I also optimized the build steps so *.so is directly built from .c because every upstream plugin is compiled from a single source file. I am still keeping the multi-file plugin support, which Kees Cook mentioned might be needed by out-of-tree plugins. (https://lkml.org/lkml/2019/1/11/1107) If the plugin, foo.so, is compiled from two files foo.c and foo2.c, then you can do like follows: foo-objs := foo.o foo2.o Single-file plugins do not need the *-objs notation. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Kees Cook <keescook@chromium.org> |
||
---|---|---|
.. | ||
.gitignore | ||
arm_ssp_per_task_plugin.c | ||
cyc_complexity_plugin.c | ||
gcc-common.h | ||
gcc-generate-gimple-pass.h | ||
gcc-generate-ipa-pass.h | ||
gcc-generate-rtl-pass.h | ||
gcc-generate-simple_ipa-pass.h | ||
gen-random-seed.sh | ||
Kconfig | ||
latent_entropy_plugin.c | ||
Makefile | ||
randomize_layout_plugin.c | ||
sancov_plugin.c | ||
stackleak_plugin.c | ||
structleak_plugin.c |