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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0420CA0EDA for ; Tue, 12 Aug 2025 05:44:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5580E8E00C7; Tue, 12 Aug 2025 01:44:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C30D8E00BE; Tue, 12 Aug 2025 01:44:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 363F08E00C7; Tue, 12 Aug 2025 01:44:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 1BD4B8E00C6 for ; Tue, 12 Aug 2025 01:44:35 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C49B01A01C2 for ; Tue, 12 Aug 2025 05:44:34 +0000 (UTC) X-FDA: 83767015668.13.D44BC14 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf14.hostedemail.com (Postfix) with ESMTP id E00A8100005 for ; Tue, 12 Aug 2025 05:44:32 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=JqzHOjKA; dkim=pass header.d=linutronix.de header.s=2020e header.b=eJOu4USm; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf14.hostedemail.com: domain of t-8ch@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=t-8ch@linutronix.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1754977473; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=WeePFN7UO8+hOKOyWOa3G3+alh9wPXoqMxnhe0D2ylY=; b=mmTj1JoewgqG+O0gfRBMgu5RDDOlIILmpghvXAqlRfjgVv65ha2UUIiIBYNI1XBvKKa6Z9 Pof8Mw3NLsKpI7qHPnkPqm+0jWqQvuUv49p4Q2ixMZcsmBsqlyqJtRU+JK/WcUVypsDh0a lkG5ekokq46mnMyZNapduTx8pQ/muCA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1754977473; a=rsa-sha256; cv=none; b=dnNcUCbOKkeeZaFCcJ/uwGhotCeGfSOBqZvdMMnyki3MaudBM/E2cxMGhvwlLps+Fctnc7 strfUw3l6LExfJcW7KtwXFhS7GaOJALEfwCMoia6KukgRyqD19DuhyNObihiDHQKVMAGFy EKXpTxtxh8b3PSFzHMfHgqbi+PfvRzw= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=JqzHOjKA; dkim=pass header.d=linutronix.de header.s=2020e header.b=eJOu4USm; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf14.hostedemail.com: domain of t-8ch@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=t-8ch@linutronix.de From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1754977470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WeePFN7UO8+hOKOyWOa3G3+alh9wPXoqMxnhe0D2ylY=; b=JqzHOjKA7yrLionJrJNO8KOAarJG0Oo28v1APFSwq89167wmxb1lZyHMuXNnHrDwxH9gSS /ELfgioTR5fb/Ljc+sYJEHqydQykqY+dPku+piakuLpoYplUy8nu370IDCExIRAVnKTo2d +v+xsnzyadL06twVI4C4micp1yORPIESPL7D6qalI1kfH6fJTrTV7AQ+lUY6RdlBKcOlnG roKFqmu0T++7EKHvIZhYIq0thUktatKAE+bdUH3O4P8hQJDR+cw+xBAhVt8geh7pm3kY7R qbqMp5Grpn0o6oeLQHjtKHgrAL7YpnUDvTR5ZMbjSFY5TkenW05hQQv/hde6lQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1754977470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WeePFN7UO8+hOKOyWOa3G3+alh9wPXoqMxnhe0D2ylY=; b=eJOu4USmFl8u450RqsRFSXa2Lhj6NjHhqFOSqGSdot5xvQYhfz7huLEAqhu43i8HbV2r/Y gOvSdTkIIYEnsrBw== Date: Tue, 12 Aug 2025 07:44:14 +0200 Subject: [PATCH v4 01/24] elf, uapi: Add a header for relocation constants MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20250812-vdso-absolute-reloc-v4-1-61a8b615e5ec@linutronix.de> References: <20250812-vdso-absolute-reloc-v4-0-61a8b615e5ec@linutronix.de> In-Reply-To: <20250812-vdso-absolute-reloc-v4-0-61a8b615e5ec@linutronix.de> To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andy Lutomirski , Thomas Gleixner , 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 , Christophe Leroy , Huacai Chen , WANG Xuerui , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Bogendoerfer , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , 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 , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1754977469; l=1460; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=pEZOOlfYLKHxA52mtxp/u2Atua1rkGYZwTp881737QA=; b=FP2/6LZXvWWXU9TWRCOGilFMCMdFH/DUVBCJoOqArDIYqbLz6sxu9BRz2ZOAaXa6pVuX1T7y8 Okzk+BkTdhVBChLHs5Bq2jeBZHod38wzt/AG9GAvJK+HF4hyrhvGqlM X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= X-Stat-Signature: 8af3wi6hpap9abha9tysyc55h7y1dshr X-Rspamd-Queue-Id: E00A8100005 X-Rspamd-Server: rspam10 X-Rspam-User: X-HE-Tag: 1754977472-934841 X-HE-Meta: U2FsdGVkX18x3Ki2/lFoJHXlTgsgWuy/b8hepdmeelzwKCjVw87AMJKZAb4Ue9WxTWq+IvjbMw7PXRsZdRfl6GKIz1iAmsTOSTVas8O7CwnWKicz8+kYbR4l4M6YyfFClnXWD1x/T6pOmwogRvvTVYqQgkeaQC4QX++t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j7+LXgXaa6ZhwT+epIEvpTTvzKuETrEBJh/+u2/IevtRlb0Z/XOuzQHUVLvhvLMvpmmF7yEM6wXBTt7Df22lbaZybtE8pHt+9ouCPcenS5cu0WyWarjdHEWRczM7ITtUkLwKu9jHtmJAppHczPofgLFNALwdIIjKQQqkYu7hAFyD2PBJA7G4UMXc4HA78znb0NRgCUcuMC8iBqTELjlmO6wnIu5+iy9T3epni0rMcMyoUiLN4yGCI4UFS55PnbaG/ X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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 --- 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 0000000000000000000000000000000000000000..2c382c8a4807f394a3ccabf39a81e9e9b6f7ea45 --- /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 819ded2d39de2bfcfca3c25a52c8b8cd51a01c12..3d18543d5460a757f0578afe5d487233ffaa3c57 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; -- 2.50.1