From patchwork Wed Jan 15 05:47:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13939849 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 C2BF4C02183 for ; Wed, 15 Jan 2025 05:48:48 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 36FAF280002; Wed, 15 Jan 2025 00:48:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 31F226B0095; Wed, 15 Jan 2025 00:48:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E635280002; Wed, 15 Jan 2025 00:48:48 -0500 (EST) 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 F3AD46B0093 for ; Wed, 15 Jan 2025 00:48:47 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 7C950140FDB for ; Wed, 15 Jan 2025 05:48:47 +0000 (UTC) X-FDA: 83008607094.01.06A3921 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf17.hostedemail.com (Postfix) with ESMTP id 9452B40006 for ; Wed, 15 Jan 2025 05:48:45 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b="B/KVLq+O"; dmarc=none; spf=pass (imf17.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736920125; a=rsa-sha256; cv=none; b=TWLI/DL6DMPg9fetsvlsiBzfeh/XaA0LuvqfGMxKpAHXUNbZD5Dddl9g82G+MGVdow6c4A knWs+lz7Np+NCQSS/TfuHsqvV3JrxXvl9IcwG1ZTVK1RQTy4O3vdWX8kOJzxwxdC5Zybrf bd8kIcSIGwVCCqxwFaTCbYNfgqe7uvE= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b="B/KVLq+O"; dmarc=none; spf=pass (imf17.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.179 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736920125; 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=fZpSo6SfUC/c8jq/24P0QMTbOGHfF/+b8e/6Q9KEQLE=; b=UdQ5PPI85TdmGu+AkYIDvVX/+uxl844g2Ce8s7KDWn6ZcAtle0WaxvX0YGE48437+1pK0h ciNrPZx1vo5uhH6E3BH+vURgrsNnqr4wAAWSyEkSLPz+dHTzSefdYouCPU9h94QHdbMKyb saPjYXqQlJcYDVeC5cfyxS0CF0edeVM= Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2166360285dso111737185ad.1 for ; Tue, 14 Jan 2025 21:48:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1736920124; x=1737524924; darn=kvack.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fZpSo6SfUC/c8jq/24P0QMTbOGHfF/+b8e/6Q9KEQLE=; b=B/KVLq+O3NGu+GiqJ/Ztgezw7O1sQvQ6hV8LTSUQ3II1bgoh7AtiRiMBF/Y2Vkph43 ISPDLkdoZ2Co2OD83pZQwDJ6kts5IBHmqf05lCSv8y7kiwU+xF/USW+Qj9alYqJkBHxv KvY1SfSBkRDKoFPOqv0XcOtSqXKSRZv1HPJ8c8wQJmLEfQYRrFF9knC7qohItbbkrkdv 4CFRTQ9krTPtT/dLGx47DMLrmrXlyM/6JpNoIPQqu79L0TxxjGEv4bFd0Liw7HGbCEDZ ypxXswP50G+n9DtuVKlUn22lVCl3Jb4UUpGA66BP9p7KJjCQpFCTOsHwlGgcce7PFF7T KkcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736920124; x=1737524924; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fZpSo6SfUC/c8jq/24P0QMTbOGHfF/+b8e/6Q9KEQLE=; b=FtzNqsZKW6acR6shXBdB5szfXll7UVOR6pdKuijWEdoLKWDi9lFMHeiSp1uju+FFcf H/ZO0xgubF8KYO0UzFqALoppFrgQEzXEPlr/cs+dWww85aUKVqVKmu36Nf+MRnuyaN36 WcKEJTpPr47dQdPP1FlgG1PDPuLilc9VexznLrExcTcz3oP6xmDlAyZ3UcGn56dpxQh+ QE82XcskFrHGoqWLbG1S7KGl3hdYNKjZh7iXPJsaX4sAM68gBY6gfWVqEjlQeK+hLXPb Dh0Fg4s38l8lmSV8JBnVKQUQWXe6lxmhnoLN0V6mTe0UONN4AtfnXFMK0j+yNG1mCkFz WY+Q== X-Gm-Message-State: AOJu0YyJiTKHk7T5aygkh7pOJC5DxlUle4WOABzNvJ4Hx/bJAe0I0J52 S0T1/0jUS1xYftiK250FS2zIS2vWFLhmY1A43mjrSQLg/AN71YzvMY+6Bd9yFeQ= X-Gm-Gg: ASbGncu90/Uui47g2VHieB6rLSLSkCyDF1mh3cX22i6rY/DmNB/x4Q27G5dS+DWB13E K80OiGrgkqF4H3A/WYJWzpvsNxJ7rcMuI2I/JUH2K3LnsueN+0Z/NfLppHJ8LPZlA7JBVo+YytK CUB3HhhHwVg5sPEwAhyYkam7mEkLGc3lcstbAavjehG/hMysUTHV11qTShX6BzjPLJmChA1Xpuv 61TshOJPo3iAaWuuuINxeTcx6b4/ZEBb6iOHRUXwzkDLSI8c2w4pW91tAQ= X-Google-Smtp-Source: AGHT+IE9Ko/sfU4l3gRoKIw1VpifRpZPoszZMRitXvYKUHMEVA/Y6+gd5cQmHupnz5hw/xWHCrALGQ== X-Received: by 2002:a17:902:d582:b0:216:69ca:7714 with SMTP id d9443c01a7336-21a83f339damr415380795ad.11.1736920124219; Tue, 14 Jan 2025 21:48:44 -0800 (PST) Received: from localhost ([157.82.203.37]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-21a9f219b7fsm75675195ad.116.2025.01.14.21.48.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jan 2025 21:48:43 -0800 (PST) From: Akihiko Odaki Date: Wed, 15 Jan 2025 14:47:58 +0900 Subject: [PATCH v5 1/6] elf: Define note name macros MIME-Version: 1.0 Message-Id: <20250115-elf-v5-1-0f9e55bbb2fc@daynix.com> References: <20250115-elf-v5-0-0f9e55bbb2fc@daynix.com> In-Reply-To: <20250115-elf-v5-0-0f9e55bbb2fc@daynix.com> To: Eric Biederman , Kees Cook , Catalin Marinas , Mark Brown , Dave Martin , Baoquan He , Vivek Goyal , Dave Young , LEROY Christophe Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, kexec@lists.infradead.org, binutils@sourceware.org, devel@daynix.com, Akihiko Odaki X-Mailer: b4 0.14-dev-fd6e3 X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 9452B40006 X-Stat-Signature: x7xmwrnwip59h84t1kj5x85b4nxj4kto X-HE-Tag: 1736920125-965934 X-HE-Meta: U2FsdGVkX1842FwxMblErCtXlcqBo2tQHUkNI3/SZh5KTdwPr+FJ+hctqQFEavewC1DC5pmyWghySshccznHqfK4sNld531fcc5waipUOX+XbobnsgqIyLFWrLHoK6++lfDwbOVL5gnW34uRmcmZQzHXQpYFVUhDZbtoe+IELypF/3CkS6zOpU3tkU3Y9T+jFYBp4TGVHxRGP/jetEm+pvlgsRIoLok5b9cLm1qckH9c/XBxr/rYrp79Qbh4Bjtnb6/4a+SSjoXIOwswTP9oMshgZi+XmHw2vj4gGL+ihc16ZZlPHv937H/knRb168xyDVR9fxSgk28E/QKNBKGHLNrsCDZDWrGMAYrJGleSkV7wYInjVenmDDiUSN7+fV2BDvOMQJa2uxAVVXhQQevGWgMs8q8gyXMQ4JarPk55/9X7fqc/4IEiuIxRv7Q/tFdoRHSCBsssQ2WxmeLwE7qbJwYUuk9LflW6PM5t6Tu1bW8vGc4RPjP3P5pI5A1D2oduICAZtYAjNfnRrvFfbun+dpvpdkMCXmmFBWakUUiPzyLh9nScRK6fEJI92auTgKGr+tso7scwONZccJsdF41zBhZZqgEReGyUamu2VQvv0N8EGCZ6NYTWjjtFH5lZSeMr7kbwDWuoKilGYeWUIVjEC2FiWb7Ut8rSGxi34+65iZkJ86TDpub9DNuEPC6giEVASTO7rkNMqI0L1WQNj/v58aZz/mZ7jJDFduhOSSUt0l1w0dTAIWmWFTUhEn6In2v1ZghMmOjQJHNUjd4Z1XSFvUQ5PO0D3ktMk4fOZ3tTfr/K+42PNqxhy46Dl6109rYsvHeHHM94fRnnhPfo0htmOZ7Fnhav9zA0CnMNKXkMvhrHwqxnTVtSPrDCUx6kM659S6VF5ddb+AS+r12GabnnOtCJ/Ec0ZebinZlUsTC0YAPYXje6zDhzQIZobNEbn0EmtU4/ncqKy7GpQvRpTQz QQ4c3kq7 otQud3aQhgc0d44ctoPZuLyQrm4s/VgzrvkTH14/2c998BbwKraTFzA6N/QJIEaxKA4RjlzKdphFZSjHJ5j2wkpJfdANiBARyAukS7di4TXoa8CrNW5cMnm6SwAkBqHUHpvs1pApYz6pKoTz1+/ck/yqrzgJpeI98/Q3SX6cdok531YaKSyGLZz1695Q0Q8Ty23/ezrUgkog1vZzcDU4tX16SgVIdOY1FNIam74ms7km5Hd280gktR+TZcsJVif6B9DmloQGxpMr4CSEcpuCTOsvQ8voNBbgPPqM2SoYx7/XWOwhBYdpTqLkF601lPmkwfk0ykjFjNxE4tpiENlruz4T//vX9RExmxzwmwVkE88CKxsQ= 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: elf.h had a comment saying: > Notes used in ET_CORE. Architectures export some of the arch register > sets using the corresponding note types via the PTRACE_GETREGSET and > PTRACE_SETREGSET requests. > The note name for these types is "LINUX", except NT_PRFPREG that is > named "CORE". However, NT_PRSTATUS is also named "CORE". It is also unclear what "these types" refers to. To fix these problems, define a name for each note type. The added definitions are macros so the kernel and userspace can directly refer to them to remove their duplicate definitions of note names. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He --- include/uapi/linux/elf.h | 89 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 84 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index b44069d29cec..592507aa9b3a 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -368,101 +368,180 @@ typedef struct elf64_shdr { #define ELF_OSABI ELFOSABI_NONE #endif +/* Note definitions: NN_ defines names. NT_ defines types. */ + +#define NN_GNU_PROPERTY_TYPE_0 "GNU" +#define NT_GNU_PROPERTY_TYPE_0 5 + /* * Notes used in ET_CORE. Architectures export some of the arch register sets * using the corresponding note types via the PTRACE_GETREGSET and * PTRACE_SETREGSET requests. - * The note name for these types is "LINUX", except NT_PRFPREG that is named - * "CORE". */ +#define NN_PRSTATUS "CORE" #define NT_PRSTATUS 1 +#define NN_PRFPREG "CORE" #define NT_PRFPREG 2 +#define NN_PRPSINFO "CORE" #define NT_PRPSINFO 3 +#define NN_TASKSTRUCT "CORE" #define NT_TASKSTRUCT 4 +#define NN_AUXV "CORE" #define NT_AUXV 6 /* * Note to userspace developers: size of NT_SIGINFO note may increase * in the future to accomodate more fields, don't assume it is fixed! */ +#define NN_SIGINFO "CORE" #define NT_SIGINFO 0x53494749 +#define NN_FILE "CORE" #define NT_FILE 0x46494c45 +#define NN_PRXFPREG "LINUX" #define NT_PRXFPREG 0x46e62b7f /* copied from gdb5.1/include/elf/common.h */ +#define NN_PPC_VMX "LINUX" #define NT_PPC_VMX 0x100 /* PowerPC Altivec/VMX registers */ +#define NN_PPC_SPE "LINUX" #define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */ +#define NN_PPC_VSX "LINUX" #define NT_PPC_VSX 0x102 /* PowerPC VSX registers */ +#define NN_PPC_TAR "LINUX" #define NT_PPC_TAR 0x103 /* Target Address Register */ +#define NN_PPC_PPR "LINUX" #define NT_PPC_PPR 0x104 /* Program Priority Register */ +#define NN_PPC_DSCR "LINUX" #define NT_PPC_DSCR 0x105 /* Data Stream Control Register */ +#define NN_PPC_EBB "LINUX" #define NT_PPC_EBB 0x106 /* Event Based Branch Registers */ +#define NN_PPC_PMU "LINUX" #define NT_PPC_PMU 0x107 /* Performance Monitor Registers */ +#define NN_PPC_TM_CGPR "LINUX" #define NT_PPC_TM_CGPR 0x108 /* TM checkpointed GPR Registers */ +#define NN_PPC_TM_CFPR "LINUX" #define NT_PPC_TM_CFPR 0x109 /* TM checkpointed FPR Registers */ +#define NN_PPC_TM_CVMX "LINUX" #define NT_PPC_TM_CVMX 0x10a /* TM checkpointed VMX Registers */ +#define NN_PPC_TM_CVSX "LINUX" #define NT_PPC_TM_CVSX 0x10b /* TM checkpointed VSX Registers */ +#define NN_PPC_TM_SPR "LINUX" #define NT_PPC_TM_SPR 0x10c /* TM Special Purpose Registers */ +#define NN_PPC_TM_CTAR "LINUX" #define NT_PPC_TM_CTAR 0x10d /* TM checkpointed Target Address Register */ +#define NN_PPC_TM_CPPR "LINUX" #define NT_PPC_TM_CPPR 0x10e /* TM checkpointed Program Priority Register */ +#define NN_PPC_TM_CDSCR "LINUX" #define NT_PPC_TM_CDSCR 0x10f /* TM checkpointed Data Stream Control Register */ +#define NN_PPC_PKEY "LINUX" #define NT_PPC_PKEY 0x110 /* Memory Protection Keys registers */ +#define NN_PPC_DEXCR "LINUX" #define NT_PPC_DEXCR 0x111 /* PowerPC DEXCR registers */ +#define NN_PPC_HASHKEYR "LINUX" #define NT_PPC_HASHKEYR 0x112 /* PowerPC HASHKEYR register */ +#define NN_386_TLS "LINUX" #define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */ +#define NN_386_IOPERM "LINUX" #define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */ +#define NN_X86_XSTATE "LINUX" #define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */ /* Old binutils treats 0x203 as a CET state */ +#define NN_X86_SHSTK "LINUX" #define NT_X86_SHSTK 0x204 /* x86 SHSTK state */ +#define NN_X86_XSAVE_LAYOUT "LINUX" #define NT_X86_XSAVE_LAYOUT 0x205 /* XSAVE layout description */ +#define NN_S390_HIGH_GPRS "LINUX" #define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */ +#define NN_S390_TIMER "LINUX" #define NT_S390_TIMER 0x301 /* s390 timer register */ +#define NN_S390_TODCMP "LINUX" #define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */ +#define NN_S390_TODPREG "LINUX" #define NT_S390_TODPREG 0x303 /* s390 TOD programmable register */ +#define NN_S390_CTRS "LINUX" #define NT_S390_CTRS 0x304 /* s390 control registers */ +#define NN_S390_PREFIX "LINUX" #define NT_S390_PREFIX 0x305 /* s390 prefix register */ +#define NN_S390_LAST_BREAK "LINUX" #define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */ +#define NN_S390_SYSTEM_CALL "LINUX" #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ +#define NN_S390_TDB "LINUX" #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ +#define NN_S390_VXRS_LOW "LINUX" #define NT_S390_VXRS_LOW 0x309 /* s390 vector registers 0-15 upper half */ +#define NN_S390_VXRS_HIGH "LINUX" #define NT_S390_VXRS_HIGH 0x30a /* s390 vector registers 16-31 */ +#define NN_S390_GS_CB "LINUX" #define NT_S390_GS_CB 0x30b /* s390 guarded storage registers */ +#define NN_S390_GS_BC "LINUX" #define NT_S390_GS_BC 0x30c /* s390 guarded storage broadcast control block */ +#define NN_S390_RI_CB "LINUX" #define NT_S390_RI_CB 0x30d /* s390 runtime instrumentation */ +#define NN_S390_PV_CPU_DATA "LINUX" #define NT_S390_PV_CPU_DATA 0x30e /* s390 protvirt cpu dump data */ +#define NN_ARM_VFP "LINUX" #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ +#define NN_ARM_TLS "LINUX" #define NT_ARM_TLS 0x401 /* ARM TLS register */ +#define NN_ARM_HW_BREAK "LINUX" #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ +#define NN_ARM_HW_WATCH "LINUX" #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */ +#define NN_ARM_SYSTEM_CALL "LINUX" #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */ +#define NN_ARM_SVE "LINUX" #define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */ +#define NN_ARM_PAC_MASK "LINUX" #define NT_ARM_PAC_MASK 0x406 /* ARM pointer authentication code masks */ +#define NN_ARM_PACA_KEYS "LINUX" #define NT_ARM_PACA_KEYS 0x407 /* ARM pointer authentication address keys */ +#define NN_ARM_PACG_KEYS "LINUX" #define NT_ARM_PACG_KEYS 0x408 /* ARM pointer authentication generic key */ +#define NN_ARM_TAGGED_ADDR_CTRL "LINUX" #define NT_ARM_TAGGED_ADDR_CTRL 0x409 /* arm64 tagged address control (prctl()) */ +#define NN_ARM_PAC_ENABLED_KEYS "LINUX" #define NT_ARM_PAC_ENABLED_KEYS 0x40a /* arm64 ptr auth enabled keys (prctl()) */ +#define NN_ARM_SSVE "LINUX" #define NT_ARM_SSVE 0x40b /* ARM Streaming SVE registers */ +#define NN_ARM_ZA "LINUX" #define NT_ARM_ZA 0x40c /* ARM SME ZA registers */ +#define NN_ARM_ZT "LINUX" #define NT_ARM_ZT 0x40d /* ARM SME ZT registers */ +#define NN_ARM_FPMR "LINUX" #define NT_ARM_FPMR 0x40e /* ARM floating point mode register */ +#define NN_ARM_POE "LINUX" #define NT_ARM_POE 0x40f /* ARM POE registers */ +#define NN_ARM_GCS "LINUX" #define NT_ARM_GCS 0x410 /* ARM GCS state */ +#define NN_ARC_V2 "LINUX" #define NT_ARC_V2 0x600 /* ARCv2 accumulator/extra registers */ +#define NN_VMCOREDD "LINUX" #define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note */ +#define NN_MIPS_DSP "LINUX" #define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers */ +#define NN_MIPS_FP_MODE "LINUX" #define NT_MIPS_FP_MODE 0x801 /* MIPS floating-point mode */ +#define NN_MIPS_MSA "LINUX" #define NT_MIPS_MSA 0x802 /* MIPS SIMD registers */ +#define NN_RISCV_CSR "LINUX" #define NT_RISCV_CSR 0x900 /* RISC-V Control and Status Registers */ +#define NN_RISCV_VECTOR "LINUX" #define NT_RISCV_VECTOR 0x901 /* RISC-V vector registers */ +#define NN_RISCV_TAGGED_ADDR_CTRL "LINUX" #define NT_RISCV_TAGGED_ADDR_CTRL 0x902 /* RISC-V tagged address control (prctl()) */ +#define NN_LOONGARCH_CPUCFG "LINUX" #define NT_LOONGARCH_CPUCFG 0xa00 /* LoongArch CPU config registers */ +#define NN_LOONGARCH_CSR "LINUX" #define NT_LOONGARCH_CSR 0xa01 /* LoongArch control and status registers */ +#define NN_LOONGARCH_LSX "LINUX" #define NT_LOONGARCH_LSX 0xa02 /* LoongArch Loongson SIMD Extension registers */ +#define NN_LOONGARCH_LASX "LINUX" #define NT_LOONGARCH_LASX 0xa03 /* LoongArch Loongson Advanced SIMD Extension registers */ +#define NN_LOONGARCH_LBT "LINUX" #define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary Translation registers */ +#define NN_LOONGARCH_HW_BREAK "LINUX" #define NT_LOONGARCH_HW_BREAK 0xa05 /* LoongArch hardware breakpoint registers */ +#define NN_LOONGARCH_HW_WATCH "LINUX" #define NT_LOONGARCH_HW_WATCH 0xa06 /* LoongArch hardware watchpoint registers */ -/* Note types with note name "GNU" */ -#define NT_GNU_PROPERTY_TYPE_0 5 - /* Note header in a PT_NOTE section */ typedef struct elf32_note { Elf32_Word n_namesz; /* Name size */