From nobody Sat Apr 4 04:46:45 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 9F6DF318EFA for ; Fri, 20 Mar 2026 20:50:14 +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=1774039815; cv=none; b=ofxthHD3tX2/5BVgYSiiLWcLLJIXQdcawRF00V9MSbYmAIpM/MuKzABGkb9Io7Rh6IRdfaT78DD3vN/weLpFrkPLT44ADmuzCPxuDxNR3z+XXdLPgfC1REl/irNvemR88GfYNhiaFbm4WQ6PAtt13rXJsBIAV18GBEbnfytSRsU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774039815; c=relaxed/simple; bh=8PFnTjoeCdaQIzaeUgE2p/MqLReT53S2EKPioRaW2kI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=iVi25otZv59jHoy6GeLGJ/LN4keNeglF8EXE2wuSO83prPJ7peRM0KHzySesJ4wZzg0ehzOtObFJYX4z7I7RX8VHGaE23iIuoQbTiq6gZU0XrgaH7Bvbet3unfQBRpq0nDS2cKAw4yMVHo7zV79ZEPyqm2bXHvfEVAUOlDSQ16M= 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=FJok0OPg; 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="FJok0OPg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1774039812; bh=8PFnTjoeCdaQIzaeUgE2p/MqLReT53S2EKPioRaW2kI=; h=From:Date:Subject:To:Cc:From; b=FJok0OPgtw/1uInl1wkPWa+XkR1Ku+NkoAFifRO5O7j3ZjAT8sYAj6oSOY40sCSWO Rn7y65eYiiadAdThBbfE6eL2qahqtGRoamyOQeQFhlWXERmE6SqKDxI4V3y9hb9U6w Rxk19KmudL8Mx8EW2X75B6N5eBYYos0KHwoKsysw= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Fri, 20 Mar 2026 21:50:03 +0100 Subject: [PATCH] powerpc/vdso: Add support for unstripped vDSO installation 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: <20260320-powerpc-vdso-install-v1-1-b4b551689709@weissschuh.net> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MQQqAIBBA0avErBtIk4yuEi2kxhoIFScqiO6et HyL/x8QykwCQ/VAppOFYyhQdQXz5sJKyEsx6EZ3Tat6TPGinGY8F4nIQQ6379gba0zrrVXaQ0l TJs/3vx2n9/0AMFhMoWYAAAA= X-Change-ID: 20260318-powerpc-vdso-install-847443f7712f To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774039811; l=1324; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=8PFnTjoeCdaQIzaeUgE2p/MqLReT53S2EKPioRaW2kI=; b=mV1D0V34eVAkFnvXv3kYiNv+PtMKIy429nG9IwbkYtRe/VfoFoC5BN+SzUiMrdYCqQO0qFsZE IITkXUuq3LOAPljz/stTeCwSU4rBB4wbMJm48qIcagu8hh+ps3Ligo7 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= 'make vdso_install' can install the unstripped vDSO files, so that they can be shipped to the target system for debugging purposes. Add the necessary variables so this also works on PowerPC. Signed-off-by: Thomas Wei=C3=9Fschuh --- Adding a build ID to the vdso with --build-id=3Dsha1 would also make debugging easier. And then add powerpc to scripts/Makefile.vdsoinst, or wait for [0]. [0] https://lore.kernel.org/lkml/20260320-kbuild-vdso-install-v1-0-e2e8a097= 0889@weissschuh.net/ --- arch/powerpc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index a58b1029592c..ca25dffc28fb 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -391,6 +391,10 @@ vdso_prepare: prepare0 $(build)=3Darch/powerpc/kernel/vdso include/generated/vdso64-offsets.h) endif =20 +vdso-install-$(CONFIG_PPC32) +=3D arch/powerpc/kernel/vdso/vdso32.so.dbg +vdso-install-$(CONFIG_PPC64) +=3D arch/powerpc/kernel/vdso/vdso64.so.dbg +vdso-install-$(CONFIG_COMPAT) +=3D arch/powerpc/kernel/vdso/vdso32.so.dbg + archprepare: checkbin =20 archheaders: --- base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f change-id: 20260318-powerpc-vdso-install-847443f7712f Best regards, --=20 Thomas Wei=C3=9Fschuh