From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6D0EC79FAB for ; Tue, 8 Sep 2026 09:01:17 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4hfHwr10Tpz2y8G; Tue, 08 Sep 2026 19:01:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1788858076; cv=none; b=MZWDZjgTsjiC3Gr7WvA+vffl9zhRp+E2PSDzbseWpDC1pBzu6eZiTBF3QPYf1lueLeonTUjqHROaLQwQi0HIS1RR5biwVXz+cRvEMP4WnkeN4oG+7T0V9HtEBaZ81aXV1JT2rgO16J2znDJnWSbGw0gIiXKziqSJYB10LkEt7qHW0rDcnqqt0KgWA6dr/tSC/SN6gmoiCaYk0yFfJ+QjSWUoohQl2+zT7lKYOH/xB/U21Wy5NDQoc/0T2HjxAB9Fxsp24ETPfKacVErF6qyAKaxp4nQVOunIHLBqjpYONxsrTlMIsnYIF69iiPJm6+ukFwse0eMEjHLcFRPIW8DhLQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1788858076; c=relaxed/relaxed; bh=gw6uq3WoFDGFRXHX5w46jvhy16/noKc2NTzTXodoE8A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ro0KfzXQQP1qxvaUu57VCedU/oMWHSDc1ceAKkB0jEJ9IkiQCWmMYAfc5KrmGLn1U/8WgiAopPwfRMDuatTBWsTlKFKedWVQtW/3tnm8d33y5bfSaIsnxB4KgWdGPVV3lcsrx5LftvvfjR3oqA4oZo2dzrve7wL0Eu8f3TUs1EoIwvfi4j3isdo4aDZXGJOv5EjxQKpK/Bh5no0Dd4usV9VKIOCdEOrPJDJrpaq6JpXzXVOmkk/2PPQvviXpLy80hypW/PJQuYxEpeWbaOF9VhOfLDg0mYrYa9Q4S5/LVtLlSZMI2TwrJdii6MvZltCluffqKQ6CaDHxTbBeXJ7nvw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=f83UuFnG; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=f83UuFnG; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4hfHwq1Wtyz2xYh for ; Tue, 08 Sep 2026 19:01:15 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id C2F2A60A9D; Tue, 8 Sep 2026 09:01:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D32141F00A3A; Tue, 8 Sep 2026 09:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1788858072; bh=gw6uq3WoFDGFRXHX5w46jvhy16/noKc2NTzTXodoE8A=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=f83UuFnG2Ca/NIEjfDrXHeoFRlnHHZpsg6wFetI10F3cQyUjArbK42hgG7Zxex4/s 3n5zZu9KkJ8dQxHTmVqB83udBP8YhBTSDsyRdMErALYpUYjulzhr6oGyq5X7IeS2MN EWxFsYnacMcuz5tJFBTbZAf9tMz+RnlOTNhnRLhdadOeXHk0h+wn50SECkFRbxVslO f7Ig1YtXoYtaZhrD1KEcBCtAna7hL00y1ZjgmW4/d0yWZBbhpb2lMH7Bv47zh1k7nI CEirgVNGd9giuxhLxrRDAZzVqimdNslxWSYeJo/LDlSLy8epheEmJ4uqQpNMU7Oumx oYzy9KZ7DvXJQ== Message-ID: <060be36f-5e8d-4596-a4e6-844e5930baac@kernel.org> Date: Tue, 8 Sep 2026 11:00:55 +0200 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 01/24] elf, uapi: Add a header for relocation constants 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-1-3a93791af1cf@linutronix.de> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260908-vdso-absolute-reloc-v5-1-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 : > While the numeric constants for relocations are architecture specific, > it is still useful to get access to them from other architectures. > Also the definitions are useful for userspace in general. > For example tools processing elf files during a kernel cross-compilation > can make use of them. > > Introduce a dedicated header for them, similar to the elf-em.h header. > For now the header is empty but it will be filled step by step in > upcomming commits. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Christophe Leroy (CS GROUP) > --- > include/uapi/linux/elf-r.h | 5 +++++ > include/uapi/linux/elf.h | 1 + > 2 files changed, 6 insertions(+) > > diff --git a/include/uapi/linux/elf-r.h b/include/uapi/linux/elf-r.h > new file mode 100644 > index 000000000000..2c382c8a4807 > --- /dev/null > +++ b/include/uapi/linux/elf-r.h > @@ -0,0 +1,5 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > +#ifndef _UAPI_LINUX_ELF_R_H > +#define _UAPI_LINUX_ELF_R_H > + > +#endif /* _UAPI_LINUX_ELF_R_H */ > diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h > index ee30dcd80901..b3e312255552 100644 > --- a/include/uapi/linux/elf.h > +++ b/include/uapi/linux/elf.h > @@ -4,6 +4,7 @@ > > #include > #include > +#include > > /* 32-bit ELF base types. */ > typedef __u32 Elf32_Addr; >