From mboxrd@z Thu Jan 1 00:00:00 1970 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 D84CD302776; Thu, 14 Aug 2025 13:08: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=1755176902; cv=none; b=a9H9OfK2giMfID4JSgG4Dk3bF+pHBGCixH/k/nXLx1eHzQgcq3xNTN9XQMSGYcMpW7nJCypi5JFaHnf2ZFIZHqCdyy4ns8e0AfBK8f3rd695Bao9HAvfWYY4zkorptUdGLD4pg0mF9BXKs/WJtK/T4utqus9miDmeetxgD2YlOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755176902; c=relaxed/simple; bh=BZNqAkUNOK9Nr6DHLj1baz+QKcwHjdeg9vOowOhVhiY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GS7/IpK9fPUrpFwuGNOPfwCu2r2205KwahWUbVTWcRQir5KVEkxJ+JvfEZ247FRY+l93mi3Jv35B2j6FDidTSAU+UBJO1FnuBEjZ+c5QC3nxpyTncRBHKPmasbO7XMhtIRcq9lqmuSKm7VWhCk7qh5+jVVBOVopKp09GdeUNjUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q3QXMtBO; 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="q3QXMtBO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EDA9C4CEF8; Thu, 14 Aug 2025 13:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755176901; bh=BZNqAkUNOK9Nr6DHLj1baz+QKcwHjdeg9vOowOhVhiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q3QXMtBOv6pVtTdV1TgSO/XYHl3wZqk2n/BoNJMYusSl/ZcpWz212uI3vo7NNQ115 5/MJNhjtp6H9E/YdcORrc+73XqfQO5lNDZVimQ1okRxUuSITWHc818RQQodyHQhOoA cJGGQfqpZpz7ynZK4Xc0l8aMSSPFzokS89LluMprI2TDRdI/IcK352Lvhvdeoz2+HW PcdKCtVXIl0Fbx/NlRQ+PhWge9bx1hr1W00ibyk7CSZ84U4lynDajz5ZXNIMmIJDUJ 9oVWNQkUzXIyDEyzNh47mAAnjzSCNkrgunY4TzkhDxvyUL4OM8DAGpRLzMecHmhvoR Dglq+v51Bjrrw== From: Alexey Gladkov To: Nathan Chancellor , Nicolas Schier , Masahiro Yamada , 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 v6 8/9] kbuild: vmlinux.unstripped should always depend on .vmlinux.export.o Date: Thu, 14 Aug 2025 15:07:16 +0200 Message-ID: X-Mailer: git-send-email 2.50.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 fcc188d26ead..dbbe3bf0cf23 100644 --- a/scripts/Makefile.vmlinux +++ b/scripts/Makefile.vmlinux @@ -53,11 +53,6 @@ endif # vmlinux.unstripped # --------------------------------------------------------------------------- -ifdef CONFIG_MODULES -targets += .vmlinux.export.o -vmlinux.unstripped: .vmlinux.export.o -endif - ifdef CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX vmlinux.unstripped: arch/$(SRCARCH)/tools/vmlinux.arch.o @@ -72,8 +67,8 @@ cmd_link_vmlinux = \ $< "$(LD)" "$(KBUILD_LDFLAGS)" "$(LDFLAGS_vmlinux)" "$@"; \ $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) -targets += vmlinux.unstripped -vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE +targets += 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 51367c2bfc21..433849ff7529 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -73,10 +73,7 @@ vmlinux_link() objs="${objs} .builtin-dtbs.o" fi - if is_enabled CONFIG_MODULES; then - objs="${objs} .vmlinux.export.o" - fi - + objs="${objs} .vmlinux.export.o" objs="${objs} init/version-timestamp.o" if [ "${SRCARCH}" = "um" ]; then -- 2.50.1