From patchwork Tue Jan 7 12:45:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 13928840 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 E0BD8E77197 for ; Tue, 7 Jan 2025 12:48:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 76B7C6B00AA; Tue, 7 Jan 2025 07:48:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 71BAB6B00AC; Tue, 7 Jan 2025 07:48:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5962A6B00AD; Tue, 7 Jan 2025 07:48:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 36B0F6B00AA for ; Tue, 7 Jan 2025 07:48:02 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id DEBDA16094B for ; Tue, 7 Jan 2025 12:48:01 +0000 (UTC) X-FDA: 82980633162.20.0A588C9 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf02.hostedemail.com (Postfix) with ESMTP id 04BE28000B for ; Tue, 7 Jan 2025 12:47:59 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=YngddScd; spf=pass (imf02.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736254080; 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=AmDebpmxcDiSTGvKrQgPrgLCF2gjQrxcZMAKpoZ31xU4M1YMujkNTtuWcj+zeppvinBYmr u3erqiiX0qleMUvYu0NxttoGzMcbAVYJYmdg10aFOofwl3th5vEzPsDz7ojqGHYCU9oocI /PDdUnNj3ju2mLw6i7ch9jNeHHKH4+g= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=daynix-com.20230601.gappssmtp.com header.s=20230601 header.b=YngddScd; spf=pass (imf02.hostedemail.com: domain of akihiko.odaki@daynix.com designates 209.85.214.177 as permitted sender) smtp.mailfrom=akihiko.odaki@daynix.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736254080; a=rsa-sha256; cv=none; b=OumqzienAcehJ+rezDIi1/LdjUVX+akgjnA16ovIQlsr1u0rRezQHBifN/V6xT1e1vtBRr n3vAngPg5MnOOObb18Lv9AhVcKDVY91V6lH5UnL/oxlF2CKE/0lzZ6SPhEohlprhXGEd6Y Ad39ACHHEGeJQC727I7T/axR+Pn4KLg= Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-219f8263ae0so178327745ad.0 for ; Tue, 07 Jan 2025 04:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20230601.gappssmtp.com; s=20230601; t=1736254079; x=1736858879; 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=YngddScdR+b6h4TqDGXceDWhWquFr/7jpZlxH70HiW6DW0NLd/FVCBPaZihp9ig7qp LtLp64CfmYwA3O02kc4oCJJVxDdLmrMbMHOqOVYBBg1wJRR+i1bY10wslbKRr0pz0cFm MWWjjKOsyyoouLlNFMG/HOj4POCGp9gdgk6geTqQunLkLSLCcu677HUly569NHaTDmUF CZyMTIPzlsJtqEnkdscgturWj2cNn4kOHehTfA2j+2rYm7e/sd8nFYKCyVr3qIm9VUHW B7LL2qPM38vdPH5VGw/MzyPTQYNTrd/EBTn0yGxwlReZT1kToWInjnAfLs1x/VW55nPp /vLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736254079; x=1736858879; 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=KcPr+MQRP8LypDxSLLtN/AWlhGbtRK9NiBiJdi+dP84o7XyB2g2t+Rzsz/3Iw7U6a3 c7pBFyoP1ltihKL10uwCni1sFeS9be4W3eSz/IrC9KnvzemHCQ5Mt3OKktdpkUECacxN 20QGE7EXQmOY2wh+VIWOmYOQvsVkWO92RFFCaTWhlRv9CDukVT47uljnHCpgJy7i6+v8 0wqrqDLMl3JNVxqiO2u7LnQNUvM6torcpXN2j/ZL9L5whw1FJjpINrx1g0x6qnzbaU1T B3ogMzU5f/qh5oDVz9RpyKn3AyoIVn+HR8XyYoQflhkzGQQDfiJOAwUnkSVKNkNZJ3nl xJBQ== X-Gm-Message-State: AOJu0YzrbGttzjaJKSPWxy456X+atLpsnuj825A6BXOOQSTIwcaQMWte UtqRt+9qEkaTNYR+7as7bMWWTzdsAaciS7zowCz2U4Pd2CQGOO27VjYH8mntEpA= X-Gm-Gg: ASbGnctYib5b0zdx0SaSH7Tv+XX3LwIwemuZKfL7yw1P65ntctUMOWY2Yh1puNgXa8f iAdqFBDeylxCKKYtmmq1Ko48X2fQQol7/AjnDzfAPzl2HJ1iGeQFigvQNradVvxQrRzig5hQCPV p2VVH61bLf96/Nn+mCIZpcEmR+eASAGMU8uGZMcDxIASoQ3v7AZHYZXUn9dYNab7cIxppUrdfP0 pPSUxo0RSlaR3+b5NlVj5PP90HGUj5Kefmo5RavzUmAQIrZpgbp3+FzLN0= X-Google-Smtp-Source: AGHT+IGj6u8NRmS4TeZ/1IMiWstql9gdjkk0bdLulE0ZZ9e8x4y5HEHvh/9HOrX1KoNRUGfFwcEprw== X-Received: by 2002:a17:902:f646:b0:216:501e:e314 with SMTP id d9443c01a7336-219e6e9fdb4mr938029515ad.20.1736254078701; Tue, 07 Jan 2025 04:47:58 -0800 (PST) Received: from localhost ([157.82.203.37]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-219dc962c05sm308643635ad.43.2025.01.07.04.47.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Jan 2025 04:47:58 -0800 (PST) From: Akihiko Odaki Date: Tue, 07 Jan 2025 21:45:52 +0900 Subject: [PATCH v3 1/6] elf: Define note name macros MIME-Version: 1.0 Message-Id: <20250107-elf-v3-1-99cb505b1ab2@daynix.com> References: <20250107-elf-v3-0-99cb505b1ab2@daynix.com> In-Reply-To: <20250107-elf-v3-0-99cb505b1ab2@daynix.com> To: Eric Biederman , Kees Cook , Catalin Marinas , Mark Brown , Dave Martin , Baoquan He , Vivek Goyal , Dave Young 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-Rspamd-Queue-Id: 04BE28000B X-Stat-Signature: dc6dzs5kcgdm6a3sjp8e7a58mzxkgbjy X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1736254079-414749 X-HE-Meta: U2FsdGVkX1/KSY1CE9b1TLc56PGyR/t6lncpinCim939jWHLO2IcGD5TUJoyp6yepYYvlpWEQV0G/zIrjfr23v83TukaxZPjIrIclCVBaywg8lt8DHVa/1dI1spydfiMqMLlrYHYkNcqpnUChSBftg1flMR322TWQGrBhN1IA1SFMNnvJCFQ4O7RL7RDfI6A0jYFBStCybXOFvRoVgLcyqDiKZwSDC8PR4KzWfT6vRMlyvUKYEOGCYIHWn+aw6lytzlJmnTFrazMPmy3n3RvCrsXpaIFEqiWdn37CFwAK6TFOSw2Lz7W0KGvEgXm792hs2wAgqvYnHuZOL8X0h5vSSm3W/hnSTKhr0f/ZGMobmjPAoZkrniQHuVo1ApeTZ+8KQj5kC8glFFGtPcUO3fJOTNie94wmA68CekyRRoy2g6cUos84fo+huzUcJasFBUjBXxE7YtWO0Bp31+tMsP2w34s+N8dfKgfjB1cc/bCOcWiEZ2Xsw7qPL+n2qJYG0atCutT9wtSufLgOeSpSLph0e5S3dtuNPUEh9itqa2+sUCnPbtDJQsVpz6FFx3gwQU2rgzdossmtcKGeTwV709kGgwA6x1eyzjCvOuGC1lkC77IyCeed9vHMvvRzJwONQgTKBvXJt9GhhmdeM/pHbBiCAttlh9AfZC8r9ETlUi/bvYgRO191Xi6m/4W7H7iV4OkdTFti0LB8jc7FqC5pcCLhK9C9Nmdfll5iUKOkhLEHUxxxT+IEV7IOOB0MTMzVnCqFSHrSO57//kQh59SKYG4uKsODuHxm/ahoZLzo/ORA9hkk+EQktFiz5YBz5gc53ux5PJQ2gtzrIF/aFSpc6XJZ8td5YP0DnuUXTMadBvxQRanOpQQ6lMGKeUeBZvkKCK4LlHomxb0K4eLx83A2Q3/VTb9gyDyMvKTUrwD0/fju1OLD/xemEZ1q5lfh5kM6JFRFlDl21griVLZekXH2Tt EO24nLTU n55dVUKCL1t3wpJm0wNaj3hJlYXgQrgtdbnFITqBdL+Z0z3TenPhZhG0g0T7HYmG5RpR8+8LkXBUbulCo+XXiUJdjW7+wQAk3LvearnJ9vc/BDWnuQW3xOSJ5F5tSwFtd74Ar3E3WRQoeJv69sdcfBetuB/4S2xLKbNWdud9Qzy1BNUuRK+5UqhJyjmAB6n99fs7hl6dSUmABeAdRrSSQbmtRoGMXnQWO6gW/G+CZ/kdHB8UFUrjyQl/bMOuAj/k36DcoFqCVjyReGJW7KD37Fiu1okHmn1lUP0FTpePOqCDUJFvlCnrO8valm+VC5qEFTrvYy1hvhLRG0fh33mE4NCwhJXsQtSLuwxFqgy/RXYLoDU8= 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 */