Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'kbuild-fixes-v5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild

Pull Kbuild fixes from Masahiro Yamada:

- Fix modpost to detect EXPORT_SYMBOL marked as __init or__exit

- Update the supported arch list in the LLVM document

- Avoid the second link of vmlinux for CONFIG_TRIM_UNUSED_KSYMS

- Avoid false __KSYM___this_module define in include/generated/autoksyms.h

* tag 'kbuild-fixes-v5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
kbuild: Ignore __this_module in gen_autoksyms.sh
kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS (2nd attempt)
Documentation/llvm: Update Supported Arch table
modpost: fix section mismatch check for exported init/exit sections

+13 -4
+8 -2
Documentation/kbuild/llvm.rst
··· 129 129 * - arm64 130 130 - Supported 131 131 - ``LLVM=1`` 132 + * - hexagon 133 + - Maintained 134 + - ``LLVM=1`` 132 135 * - mips 133 136 - Maintained 134 - - ``CC=clang`` 137 + - ``LLVM=1`` 135 138 * - powerpc 136 139 - Maintained 137 140 - ``CC=clang`` 138 141 * - riscv 139 142 - Maintained 140 - - ``CC=clang`` 143 + - ``LLVM=1`` 141 144 * - s390 142 145 - Maintained 143 146 - ``CC=clang`` 147 + * - um (User Mode) 148 + - Maintained 149 + - ``LLVM=1`` 144 150 * - x86 145 151 - Supported 146 152 - ``LLVM=1``
+1 -1
Makefile
··· 1141 1141 1142 1142 autoksyms_recursive: descend modules.order 1143 1143 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \ 1144 - "$(MAKE) -f $(srctree)/Makefile vmlinux" 1144 + "$(MAKE) -f $(srctree)/Makefile autoksyms_recursive" 1145 1145 endif 1146 1146 1147 1147 autoksyms_h := $(if $(CONFIG_TRIM_UNUSED_KSYMS), include/generated/autoksyms.h)
+3
scripts/gen_autoksyms.sh
··· 56 56 # point addresses. 57 57 sed -e 's/^\.//' | 58 58 sort -u | 59 + # Ignore __this_module. It's not an exported symbol, and will be resolved 60 + # when the final .ko's are linked. 61 + grep -v '^__this_module$' | 59 62 sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file"
+1 -1
scripts/mod/modpost.c
··· 980 980 }, 981 981 /* Do not export init/exit functions or data */ 982 982 { 983 - .fromsec = { "__ksymtab*", NULL }, 983 + .fromsec = { "___ksymtab*", NULL }, 984 984 .bad_tosec = { INIT_SECTIONS, EXIT_SECTIONS, NULL }, 985 985 .mismatch = EXPORT_TO_INIT_EXIT, 986 986 .symbol_white_list = { DEFAULT_SYMBOL_WHITE_LIST, NULL },