Re: [PATCH v7 2/8] kbuild: always create intermediate vmlinux.unstripped

From
Nicolas Schier <nsc@kernel.org>
Date
2025-09-17 11:57:44
Also in
linux-kbuild, lkml
Reply to
Alexey Gladkov, 2025-08-18
On Mon, Aug 18, 2025 at 06:54:56PM +0200, Alexey Gladkov wrote:
From: Masahiro Yamada <masahiroy@kernel.org>

Generate the intermediate vmlinux.unstripped regardless of
CONFIG_ARCH_VMLINUX_NEEDS_RELOCS.

If CONFIG_ARCH_VMLINUX_NEEDS_RELOCS is unset, vmlinux.unstripped and
vmlinux are identiacal.

This simplifies the build rule, and allows to strip more sections
by adding them to remove-section-y.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
 scripts/Makefile.vmlinux | 45 ++++++++++++++++++++--------------------
 1 file changed, 22 insertions(+), 23 deletions(-)
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Thread (25 messages) 25 messages, 4 authors, last reply 2025-10-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help