From nobody Wed Apr 1 11:15:19 2026 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (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 77F9C441037; Tue, 31 Mar 2026 17:50:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774979428; cv=none; b=eR4C66MrNiNhtP2nqss3pXcBewycl1r2rJQVBSHhi/hEm1nnvOuLClrHR7oWtN2oOSqupl6aRwClUxaaZwiHzMIc9oXD44nSu51jdelRdFokWOED15GjdFPFoF/8ie/kW6U7mGUqki/C7fb/sKMPGehAKwX7CNVjbOGIV7r26B0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774979428; c=relaxed/simple; bh=hLUz8zQGrUGwTqqMl4TF4YPgdp0E2S0+yu6rruoAxx4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NjPG5SitS0gjQGFXGSl56aMq9YKk2M5volXNuOVCHj50KmX3Ag3SO4d5Oob70ZdVJ12OsYCbOdtVtE0q1iwQZwyuK2xBoCpZDoCXJoaPi4f40kesI1e/nxCUe6B7l/QWDQy35CqgYlWh5gvJmOdqMMo7P7r9VJlMUI/DyNevZGc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=I+U7IW49; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="I+U7IW49" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1774979424; bh=hLUz8zQGrUGwTqqMl4TF4YPgdp0E2S0+yu6rruoAxx4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=I+U7IW49M/DAk8IEMbSJqPr+RqE2WmjCxC4oVerAX1KA4m3YZ1YRF0wfARM6owdVQ tvv0VZO5fOvfU8UgSzv0DPlU0G7U602GamfVOT4TV1JnMjuYy3bKKdNQ2rayEsYPzT lejhStr4wwIKOHVasj4L19uVlCmlc88A+hYQUt2c= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 31 Mar 2026 19:50:21 +0200 Subject: [PATCH v2 3/4] kbuild: vdso_install: gracefully handle images without build ID Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260331-kbuild-vdso-install-v2-3-606d0dc6beca@weissschuh.net> References: <20260331-kbuild-vdso-install-v2-0-606d0dc6beca@weissschuh.net> In-Reply-To: <20260331-kbuild-vdso-install-v2-0-606d0dc6beca@weissschuh.net> To: Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774979424; l=952; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hLUz8zQGrUGwTqqMl4TF4YPgdp0E2S0+yu6rruoAxx4=; b=0AQ7iiaWEAS7ng1Y5vuCUtOdXvP9RQ2+GY5wK54taKBVWEIP7I1ct5c2Pimd7f6t1/dk9Siaa Zxom03mJwioAtI1nG6UDsFgBTWK2s6pNYwK2gJRfyzf5V1+IbahEs7Z X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= If the vDSO does not contain a build ID, skip the symlink step. This will allow the removal of the explicit list of architectures. Signed-off-by: Thomas Wei=C3=9Fschuh Reviewed-by: Nicolas Schier --- scripts/Makefile.vdsoinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Makefile.vdsoinst b/scripts/Makefile.vdsoinst index aed153b3120b..3de70218b8d4 100644 --- a/scripts/Makefile.vdsoinst +++ b/scripts/Makefile.vdsoinst @@ -22,12 +22,15 @@ $$(dest): $(1) FORCE # Some architectures create .build-id symlinks ifneq ($(filter arm s390 sparc x86, $(SRCARCH)),) build-id-file :=3D $$(shell $(READELF) -n $(1) 2>/dev/null | sed -n 's@^.*= Build ID: \(..\)\(.*\)@\1/\2@p') + +ifneq ($$(build-id-file),) link :=3D $(install-dir)/.build-id/$$(build-id-file).debug =20 __default: $$(link) $$(link): $$(dest) FORCE $$(call cmd,symlink) endif +endif =20 endef =20 --=20 2.53.0