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 206754A4407; Tue, 8 Sep 2026 09:01:12 +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=1788858075; cv=none; b=huI8wfmx0ur/am0FlPAgS9hoNQReG2Dh63bCUfNfReY8eQ5mXR5tY/c6P4L5wsOOLoaiRs6O6NMS4mxx+gdKF8vaxmxMYyuDyLnuRxLWO07Xunwo71CjU3m2m/4QiPt2ZwvsW274WEJ2tRfiIFDY22/4oHWzq6c/Z/ad/GpeqUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788858075; c=relaxed/simple; bh=YOBUEcLlES6JC82OhcX3WYdWLmPQAblLjsTKCK8Cuyc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qH32QvnPfhNQ0ek8l0+3kTH0UExRWTma35DeY/pCh1Q/C12fv94H+UDYnpk2OOZ7DE409kiT1fcfXb2k77toBovqbv60aG5ReeAs5RqXLcKDwvZNBP1o+lqacVsF/Yqm/G3PRAIXQas2ukg5vyhoGdqfW9U2IMeMZlJKv3RPi4k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f83UuFnG; 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="f83UuFnG" 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 Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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; >