From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6C6E3517BB1; Tue, 8 Sep 2026 09:21:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859299; cv=none; b=SpYPMlon1EiOeq/aTyonO42r4Z7taVd/rYvWqWHc4JQsfFBmgedeDWJT+uP7naFVIzFrAFdPmVWZnpLD8xbl6NnCuJff8zMlxcCCQqKNNeBY/zpGL0foe6Vauvc5jggeNpUpzgZb6h/hynI9xDpHzeHXNG5chGuHYRapa5VLx18= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788859299; c=relaxed/simple; bh=jj+PS8mIGq7R+aPe/TMmaXmThH9/QJR/Jtfs6ZhpmY0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WX706hLkqOD+jqTF4byM4BoYl07dpb84q7Na8xMbSYEoa81tJdcOzOpbtOdDnzRZopgVy/Ma+tqsUp37UObe9TAh+VTEkUGRXfqOkJn2dBRrRHydH4K+CeQgqPbB9+o4vpjsx5wmA1zK14gsnJ/khEpyA0NHij7kVw/BNXPZ24A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xn9XtBCz; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Xn9XtBCz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36E861F00A3A; Tue, 8 Sep 2026 09:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788859298; bh=4k7jM/SARicUfiyID/Zb58FTA6TVrqfjgQqXrSbBJmY=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Xn9XtBCzNs8WX9mak5mpG8XRdy2i0zrbMydZ5LMlt1Qe6xYAL3LuxfUX8Atn2wQI5 1axnL/wqewpo705igfKNy8cNCn9+Zo3sUO5bgJKNWeixiHCJ40tMpOcHYPd0ztKnwc thks3bDKvUFN5YfpBP21ImCqeVd4BuB9bshirgyOkT8qYPLl5IHF7GtOgYNVJtKM5z OWEfgEV7HLlzD0xSV0FLDhASxeMC0R5k+YiWCZlY18vuOZyNV5jOxZq4lBnvbHCbuK MWgRGux7fP8nPYbQvR4llwvXew14x5qlJam3L6qpRO9Kd3dID9dgWciFsi7Ok948U+ EV4LzEuy2wGQQ== Message-ID: <9a27f318-2ab0-4f5e-8e87-daaa85dbc297@kernel.org> Date: Tue, 8 Sep 2026 11:21:20 +0200 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 16/24] powerpc/elf: Add 32-bit REL16 relocation definitions To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andy Lutomirski , Vincenzo Frascino , Kees Cook , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Richard Weinberger , Anton Ivanov , Johannes Berg , Russell King , Catalin Marinas , Will Deacon , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Huacai Chen , WANG Xuerui , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Bogendoerfer , Miguel Ojeda , Alex Gaynor , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Thomas Gleixner , Boqun Feng , Nicolas Schier Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-mm@kvack.org, linux-um@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linux-mips@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, Jan Stancek , Arnaldo Carvalho de Melo , Alexandre Ghiti References: <20260908-vdso-absolute-reloc-v5-0-3a93791af1cf@linutronix.de> <20260908-vdso-absolute-reloc-v5-16-3a93791af1cf@linutronix.de> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260908-vdso-absolute-reloc-v5-16-3a93791af1cf@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 08/09/2026 à 08:33, Thomas Weißschuh a écrit : > These are used by userspace and are necessary for the vdsocheck tool. > They share the numbers with their 64-bit variants. > > Also update the copy in tools/ so they can be used by vdsocheck. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Christophe Leroy (CS GROUP) > --- > include/uapi/linux/elf-r.h | 7 ++++++- > tools/include/uapi/linux/elf-r.h | 7 ++++++- > 2 files changed, 12 insertions(+), 2 deletions(-) > > diff --git a/include/uapi/linux/elf-r.h b/include/uapi/linux/elf-r.h > index 72fc9045a5d4..170888422400 100644 > --- a/include/uapi/linux/elf-r.h > +++ b/include/uapi/linux/elf-r.h > @@ -182,8 +182,13 @@ > #define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */ > #define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */ > > +#define R_PPC_REL16 249 > +#define R_PPC_REL16_LO 250 > +#define R_PPC_REL16_HI 251 > +#define R_PPC_REL16_HA 252 > + > /* keep this the last entry. */ > -#define R_PPC_NUM 95 > +#define R_PPC_NUM 253 > > /* PowerPC64 relocations defined by the ABIs */ > #define R_PPC64_NONE R_PPC_NONE > diff --git a/tools/include/uapi/linux/elf-r.h b/tools/include/uapi/linux/elf-r.h > index 72fc9045a5d4..170888422400 100644 > --- a/tools/include/uapi/linux/elf-r.h > +++ b/tools/include/uapi/linux/elf-r.h > @@ -182,8 +182,13 @@ > #define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */ > #define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */ > > +#define R_PPC_REL16 249 > +#define R_PPC_REL16_LO 250 > +#define R_PPC_REL16_HI 251 > +#define R_PPC_REL16_HA 252 > + > /* keep this the last entry. */ > -#define R_PPC_NUM 95 > +#define R_PPC_NUM 253 > > /* PowerPC64 relocations defined by the ABIs */ > #define R_PPC64_NONE R_PPC_NONE >