Thread (15 messages) 15 messages, 4 authors, 2025-01-06

Re: [PATCH v2 0/5] elf: Define note name macros

From: Baoquan He <hidden>
Date: 2025-01-06 06:08:11
Also in: kexec, linux-mm, linux-s390, lkml

On 01/04/25 at 11:38pm, Akihiko Odaki wrote:
elf.h had a comment saying:
quoted
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 <redacted>
---
Changes in v2:
- Added a macro definition for each note type instead of trying to
  describe in a comment.
- Link to v1: https://lore.kernel.org/r/20241225-elf-v1-1-79e940350d50@daynix.com (local)
The entire patchset looks good to me, thx.

Acked-by: Baoquan He <redacted>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help