diff options
| author | Nathan Chancellor <nathan@kernel.org> | 2026-10-11 01:22:02 +0100 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2026-10-11 01:22:02 +0100 |
| commit | fd26cc1da1ec4dbe4ca19d0c94f802ff4300a788 (patch) | |
| tree | f343bf7e191d0567d77f8f352fdd53111b75e8e1 /scripts/Makefile.vmlinux | |
| parent | 185b2c6a021ac46c62342fa814e5e2393f8396c5 (diff) | |
| parent | ae5f6044c4cdffe2b3361b15c1d6fc67b339f2a4 (diff) | |
| download | linux-next-fd26cc1da1ec4dbe4ca19d0c94f802ff4300a788.tar.gz linux-next-fd26cc1da1ec4dbe4ca19d0c94f802ff4300a788.zip | |
Merge branch 'kbuild-next-speedups' into kbuild-for-next
* kbuild-next-speedups:
kbuild: Mark the initcall ordering recipe as recursive
kbuild: Mark the gzip recipes as recursive
kconfig: Improve ergonomics around disabling warnings with cc-option
scripts/Kconfig.toolchain: Drop compiler symbols from dependencies
kbuild: keep .modinfo when vmlinux is linked with --gc-sections
kbuild: compress the kernel with pigz if available
kbuild: avoid re-running compiler and linker probes
kbuild: move the toolchain checks into scripts/Kconfig.toolchain
kallsyms: reimplement mksysmap in C
elf-parse: add section flags, symbol binding and mapping helpers
kbuild: only emit vmlinux relocations when required
kbuild: do not sort nm output where the order is irrelevant
sorttable: parse nm output correctly
kallsyms: output binary data to speed output and kallsyms assembly
kallsyms: index symbols by token to speed up table compression
kbuild: do not allocate .modinfo in vmlinux
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts/Makefile.vmlinux')
| -rw-r--r-- | scripts/Makefile.vmlinux | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux index 6833b517cacb..95b523fe4f9e 100644 --- a/scripts/Makefile.vmlinux +++ b/scripts/Makefile.vmlinux @@ -89,11 +89,8 @@ remove-section-$(CONFIG_ARCH_VMLINUX_NEEDS_RELOCS) += '.rel.*' remove-symbols := -w --strip-unneeded-symbol='__mod_device_table__*' -# To avoid warnings: "empty loadable segment detected at ..." from GNU objcopy, -# it is necessary to remove the PT_LOAD flag from the segment. quiet_cmd_strip_relocs = OBJCOPY $@ - cmd_strip_relocs = $(OBJCOPY) $(patsubst %,--set-section-flags %=noload,$(remove-section-y)) $< $@; \ - $(OBJCOPY) $(addprefix --remove-section=,$(remove-section-y)) $(remove-symbols) $@ + cmd_strip_relocs = $(OBJCOPY) $(addprefix --remove-section=,$(remove-section-y)) $(remove-symbols) $< $@ targets += vmlinux vmlinux: vmlinux.unstripped FORCE @@ -103,10 +100,7 @@ vmlinux: vmlinux.unstripped FORCE # --------------------------------------------------------------------------- quiet_cmd_modules_builtin_modinfo = GEN $@ - cmd_modules_builtin_modinfo = $(cmd_objcopy); \ - chmod -x $@ - -OBJCOPYFLAGS_modules.builtin.modinfo := -j .modinfo -O binary + cmd_modules_builtin_modinfo = $(OBJCOPY) -O binary -j .modinfo --dump-section .modinfo=$@ $< /dev/null targets += modules.builtin.modinfo modules.builtin.modinfo: vmlinux.unstripped FORCE |
