From patchwork Sat Jan 11 05:48:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13935788 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 97D8CE7719C for ; Sat, 11 Jan 2025 05:49:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FEA26B009C; Sat, 11 Jan 2025 00:49:05 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1AFD46B009E; Sat, 11 Jan 2025 00:49:05 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 076846B00A0; Sat, 11 Jan 2025 00:49:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id DE74E6B009C for ; Sat, 11 Jan 2025 00:49:04 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 6D2AB44DF3 for ; Sat, 11 Jan 2025 05:49:04 +0000 (UTC) X-FDA: 82994092608.16.8E78150 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf18.hostedemail.com (Postfix) with ESMTP id 828261C0008 for ; Sat, 11 Jan 2025 05:49:02 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=3dZ+ZrWq; dmarc=none; spf=pass (imf18.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736574542; a=rsa-sha256; cv=none; b=PmdGBaNAoLmoa2b0vBjaxCeNPUu/xxpjLLXJLBoX/AeRZ3mgwZqheMHRC5vaftkV44wzgG 7zZZp5aYJDfjP0GS3QjVrueCjYP3cfFOFvy80jn9EqKzWmDe0fCIDGPDKck1hB/pu4oX3M TJtL/qHzggphfGJl5qVOd92dwFuInzs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=3dZ+ZrWq; dmarc=none; spf=pass (imf18.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.177 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=1736574542; 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=He/FF4mW6z63rm6Ez1fm+hLtPmYbF/A35f1xOajKz/c=; b=6Yas4DLEouY1y6k0rXhq9RraLUbBQcVznaxmx1GYAr+BA8YfV02thJ5n6ijMK24eelwORb CN6VAXbcFxcxKTVO43cNtAYcOb7nGtP4sdTioqSEhLAE5syNHcYezZ67oA2nx7SI/S3Bo5 MLpFMgDESYJEyie8JlDdqs9pfettc4I= Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21619108a6bso46614635ad.3 for ; Fri, 10 Jan 2025 21:49:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1736574541; x=1737179341; 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=He/FF4mW6z63rm6Ez1fm+hLtPmYbF/A35f1xOajKz/c=; b=3dZ+ZrWqyjd/7A8s0vktCO/NFIU+N30WG2BlJ43n3yzpFEImyGN06Ig+wrDx7YNkTu 2CpVJ8nS2lcmlAWwUFJy8f5vL9aJ3FOUhanUNQP9LAtf1qquEpJHbzLOLED1uGycIiiE Rec2/x32l+opO7jjjJg+ptFgBQ0yri2LtxtstMV8b5IW2yu7GLqHJpbRznQ/iUpV3lwz lnCI0piQFUakJlHqRnSSnt2UJNd3wZjVlfDEQfyb8yBUDDA3md+fVeG/8XVaSrGFaXDD 84Igq+r8WTnJtwlQfHDTCRy0XyWPKDLyUIOPH/jhZSyfviOt7iEMdykVhOIhwRn9qceS tekw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736574541; x=1737179341; 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=He/FF4mW6z63rm6Ez1fm+hLtPmYbF/A35f1xOajKz/c=; b=PYMYY3Ju413rJQezUGn5P+7N7mgOjPYM8iTmdr1dfHtDesHB1FWL7DV6VEeuuB+9eh ZV5YoBZNyCYRJ4hS68DmvPbTgu1JlHPcu5OKjUWQOCGZZkpfFIWr4inG5qQTUd/iKs3Y hkQ3Mjv0iu2p3f5IJE8UbyWNVucEfmfxyKKKuxBsK2YUym8WTUfzroOpmG+8OGO/ea9o 1eut0i1wcbNPGZHvuIVULLY55sgXYPtGm24rgsbbdHB0HoxfjIE6Gw9fhG4HLPYj8cbx 1+y1aYaUfFOwllSlf53ey/Awkklx5r2GWOkOHCskfXBlGPhZWyapLWPmCp1/izkIiKIG cwUA== X-Gm-Message-State: AOJu0Yy5wExRs0vTvbzvKMSpQ1ts+Ja8nTuk0nBlc5vRn1XA0M59mMZD 7nKeJ7L3MuzPjvC3YwQ8pilK9SJfjTR3Dv2twXwriRyGkOfvzr21c03lAvxM0uw= X-Gm-Gg: ASbGncsvftpSW/kf8uSQa6RsmFDy/hd8WR/rf/0tz24kXMKMym99lRPGka36jAP7f/C ifUfhcZC1Acx+beq+x2eEDMeAPiwOFXUpSGLIC3YDNpIki7Y5pbZzWAgXE8hON3epPesFSQSQhE Fp4Unq9gjxgdYTdlggC8NQSjNWvt+089Cla+TbEayheGtJIVygLKsZ/HzEFj2TybfFJMCOitcKb gcVJYpxj2tnlfMleNaTbDkHjS/b4NNQK8N5P8a/vHQMTClbZawIqkphKYw= X-Google-Smtp-Source: AGHT+IHcpmdtla8m811pOhOWUKKg3mt5D2YgMgKQAi/FtxQToiO3ZEw9yK9yhc6mlxAM0lTabpo8Kw== X-Received: by 2002:a05:6a00:cd6:b0:729:9f1:69bc with SMTP id d2e1a72fcca58-72d21f45b2fmr19552247b3a.12.1736574541182; Fri, 10 Jan 2025 21:49:01 -0800 (PST) Received: from localhost ([157.82.203.37]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-72d405489e2sm2380384b3a.32.2025.01.10.21.48.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Jan 2025 21:49:00 -0800 (PST) From: Akihiko Odaki Date: Sat, 11 Jan 2025 14:48:44 +0900 Subject: [PATCH v4 1/6] elf: Define note name macros MIME-Version: 1.0 Message-Id: <20250111-elf-v4-1-b3841fa0dcd9@daynix.com> References: <20250111-elf-v4-0-b3841fa0dcd9@daynix.com> In-Reply-To: <20250111-elf-v4-0-b3841fa0dcd9@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: 828261C0008 X-Stat-Signature: 5t5uyss9fj1ut1zw7u1ntcjm1aacbai8 X-HE-Tag: 1736574542-538444 X-HE-Meta: U2FsdGVkX1//zY62CspDYc9nE7b4HKUIGpQZNk7azzRw1xzuG5n0oXeuh3jdao8ZxqhRNSuKIC3OuGjtnXUgEdn6dOnOvroQgT6B7+K06tXBykPfByMKD0f7DGVN48SO697b0IcNJvDwasXuI1NKAfhVJTJa2TPB/YBy1+KJXH10N/1zXrgoqXtGUnC8BQqz2fXdZU5gNHxeNB3GdZGSRDmHDEhmBBSHAmpYoM3nQsnQXedLpde+02xafi6C3WhLBklhyOoYnSbZQsQf894mBl5zOZdT8O4z2SwVvFyoZ7JvanqjapNEpPfgH2Cce1sC5mxicpNp7nm6JJw9ZG6f7Lh/nHPo21SEz6aQwiXxniNT8yT9+KQMrfq5Vmn/iYhFRVc3mox+ApDEh/+Nfkln2sEp5OLRpzibMD6r1meH3ePtRD9/EVTiui0rhc3YVvrFTqSfZYH+1Hxdg6DID7UOX7XiLjAgRT2nqbc9Xz/KtG3tZnqV4WttIo4p6KFWRSlvzkPqsj/Nmoc2Tn7MeF/cDKOJHvld4hmbvoDtI9dbUpJjZnAjHygalO+fTXyYBmwIf/ViiY42s+BkxukvKkvSynErMg2S3awvLsgcwpgTVtq1QgRHKuayzlvsYjo8nKvUH2xwFUvCQGrGaacNpa72iI83geMq3NASnIJq+XcnTpWZx2//tNaFRIOTPtiZ5YknNCo+sdJLXOQRXsAnSjIIqBKLWlqXWUS4QxThFQNrU4JDkAcaJ4Y6hX4UzbirTaR4mYhoJsx2VCfRFkytlIsOF8674vSwGx0sCMYPbgJ+6QgTLZKWiZZA2R68GIJDOi4nQvuwZfN/YYDWYYmXUZ+DO4c7zzx6MTXvCPZzVU2LgkjCmsAJVKglz5MRYQvjo53AzMwrHGMpzWuF6ol2thRPeTo5jfDjYpcDQ7HUPc7qjNYfKNc/X5mqwRf/tvjrGgWl3klQ4YraVuavxfHv1xX fJSDYqdz lgd1Vo/QNHEsDxhurH2aB6lqaotN5lJ1v8UWSNWFg/3ljaVH8ynCsgaD4Z3a0Ptcqzoe5axQ0fdC9EZ+amkfQZlMFuSxc8XcT7BY5tJi2jWzA6QHa9xLPVXcOnZPfsp0z1oC6Y/35yDBwUPMtlrpQaW5fBa/3CH8SE9gMETknIysqtHj2dNo34mSEa9TL7SOSff57PpauqFP/H2kust/X2s6kxroxsZpivqPSaHZzeCpvAtERSHrMlmkukRwF2ltQgr7CMImSRXGtMVg59L+osSzucFvMdGqJyE04Oy8L8OVH3j5XdURzpMaY3H6eT1CAcQKeqFJ2FSctnJJr029aP+n6rCLeLdzVv9W75d0+HHSFKd0= 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. Signed-off-by: Akihiko Odaki Acked-by: Baoquan He --- include/uapi/linux/elf.h | 86 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 3 deletions(-) diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index b44069d29cec..343f5c40d03a 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -368,99 +368,179 @@ typedef struct elf64_shdr { #define ELF_OSABI ELFOSABI_NONE #endif +/* Note definitions: NN_ defines names. NT_ defines types. */ + /* * 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" */ +/* Note used in other file types. */ +#define NN_GNU_PROPERTY_TYPE_0 "GNU" #define NT_GNU_PROPERTY_TYPE_0 5 /* Note header in a PT_NOTE section */