mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 10:34:55 +08:00
7f7f6f7ad6
Now Kbuild provides reasonable defaults for objtool, sanitizers, and profilers. Remove redundant variables. Note: This commit changes the coverage for some objects: - include arch/mips/vdso/vdso-image.o into UBSAN, GCOV, KCOV - include arch/sparc/vdso/vdso-image-*.o into UBSAN - include arch/sparc/vdso/vma.o into UBSAN - include arch/x86/entry/vdso/extable.o into KASAN, KCSAN, UBSAN, GCOV, KCOV - include arch/x86/entry/vdso/vdso-image-*.o into KASAN, KCSAN, UBSAN, GCOV, KCOV - include arch/x86/entry/vdso/vdso32-setup.o into KASAN, KCSAN, UBSAN, GCOV, KCOV - include arch/x86/entry/vdso/vma.o into GCOV, KCOV - include arch/x86/um/vdso/vma.o into KASAN, GCOV, KCOV I believe these are positive effects because all of them are kernel space objects. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Roberto Sassu <roberto.sassu@huawei.com>
28 lines
861 B
Makefile
28 lines
861 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS_REMOVE_empty.o += $(CC_FLAGS_LTO)
|
|
|
|
hostprogs-always-y += modpost mk_elfconfig
|
|
always-y += empty.o
|
|
|
|
modpost-objs := modpost.o file2alias.o sumversion.o symsearch.o
|
|
|
|
devicetable-offsets-file := devicetable-offsets.h
|
|
|
|
$(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE
|
|
$(call filechk,offsets,__DEVICETABLE_OFFSETS_H__)
|
|
|
|
targets += $(devicetable-offsets-file) devicetable-offsets.s
|
|
|
|
# dependencies on generated files need to be listed explicitly
|
|
|
|
$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o $(obj)/symsearch.o: $(obj)/elfconfig.h
|
|
$(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
|
|
|
|
quiet_cmd_elfconfig = MKELF $@
|
|
cmd_elfconfig = $(obj)/mk_elfconfig < $< > $@
|
|
|
|
$(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE
|
|
$(call if_changed,elfconfig)
|
|
|
|
targets += elfconfig.h
|