From nobody Sun Feb 8 00:47:04 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A1632FC87C; Thu, 18 Sep 2025 08:07:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758182842; cv=none; b=T/8JCuk7IkdWBejhru2ju2FwZ8EUFrhu51wCsiyJjFbc+zOzESg3fRZJQ9IuPiCZNHwsF0RaxiaoRGr+lI+brQQgA/g5Fz4LtxOMOmW0mmvObHGUGvWxzaIESG4mgs+U+GLX3pjDK803CH9WORP7PIsk7rXnUdqjMgpiWsoPIN4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758182842; c=relaxed/simple; bh=QftOzJsbNOGWTMHdJU6pkH/OLZmiw9UUKgy8+RhpRvs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nmK7hFX3I469NVXTfQnW9p2AnKOhEnYQYne92Qi3kfdTygkhgs3Vep4M+Gv8L1M3kmhjibtfkQ35D3MkXep2qSfXoV8s8R57auPOoLwGFbrSlK1scdc/58HpgbTy4+Mkj1IvPxSbAj3wy99Ih4YBXDM7XSStTqYgQSaRAU085To= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KDrkSLdO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KDrkSLdO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A7CAC4CEE7; Thu, 18 Sep 2025 08:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758182841; bh=QftOzJsbNOGWTMHdJU6pkH/OLZmiw9UUKgy8+RhpRvs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KDrkSLdOpwziaioIQhkPn36yJBjkb1sQMJDfr+3N8KOGlucHyx700fWl1qpb1/iaq 4uoGX5Ih/WvX47AY2MZ6Bs8Snb56mlNrIH026q/AtW6OcqGAxmB28C0g6DCuvRC2vP lYtrSOPk6YxHerAo4aRsqIpltscRPHEqz/FeM3+H4FJ+YyhFJZfZR9Q/BRmGsGIZWX MZcOnzwLE92e0RezHHAnV6GAN+IHVgwJd3AzGM4aptxS5JS3aGviImiu3KCA2snVlk soRLAMgJXfkmBynDSr0vHteF+RLTeRMcypmF99K1UwLgsiV7AcCXNkPSSdWNz3itq/ faMQ6xh3JknpQ== From: Alexey Gladkov To: Nathan Chancellor , Nicolas Schier , Petr Pavlu , Luis Chamberlain , Sami Tolvanen , Daniel Gomez Cc: linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-kbuild@vger.kernel.org, Alexey Gladkov Subject: [PATCH v8 8/8] kbuild: vmlinux.unstripped should always depend on .vmlinux.export.o Date: Thu, 18 Sep 2025 10:05:52 +0200 Message-ID: <0e63a9c7741fe8217e4fd7c60afcf057ffa2ef5a.1758182101.git.legion@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since .vmlinux.export.c is used to add generated by modpost modaliases for builtin modules the .vmlinux.export.o is no longer optional and should always be created. The generation of this file is not dependent on CONFIG_MODULES. Signed-off-by: Alexey Gladkov Reviewed-by: Nicolas Schier --- scripts/Makefile.vmlinux | 9 ++------- scripts/link-vmlinux.sh | 5 +---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux index 1e5e37aadcd05..7c6ae9886f8f7 100644 --- a/scripts/Makefile.vmlinux +++ b/scripts/Makefile.vmlinux @@ -53,11 +53,6 @@ endif # vmlinux.unstripped # ------------------------------------------------------------------------= --- =20 -ifdef CONFIG_MODULES -targets +=3D .vmlinux.export.o -vmlinux.unstripped: .vmlinux.export.o -endif - ifdef CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX vmlinux.unstripped: arch/$(SRCARCH)/tools/vmlinux.arch.o =20 @@ -72,8 +67,8 @@ cmd_link_vmlinux =3D \ $< "$(LD)" "$(KBUILD_LDFLAGS)" "$(LDFLAGS_vmlinux)" "$@"; \ $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) =20 -targets +=3D vmlinux.unstripped -vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE +targets +=3D vmlinux.unstripped .vmlinux.export.o +vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o .vmlinux.export.o $(= KBUILD_LDS) FORCE +$(call if_changed_dep,link_vmlinux) ifdef CONFIG_DEBUG_INFO_BTF vmlinux.unstripped: $(RESOLVE_BTFIDS) diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 51367c2bfc21e..433849ff7529e 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -73,10 +73,7 @@ vmlinux_link() objs=3D"${objs} .builtin-dtbs.o" fi =20 - if is_enabled CONFIG_MODULES; then - objs=3D"${objs} .vmlinux.export.o" - fi - + objs=3D"${objs} .vmlinux.export.o" objs=3D"${objs} init/version-timestamp.o" =20 if [ "${SRCARCH}" =3D "um" ]; then --=20 2.51.0