Add AT_RSEQ_* from Linux 6.3 to elf.h

Message ID e0604ec6-dcd-189a-cd19-1b947dbe63a@codesourcery.com
State Committed
Commit 8754a4133e154ca853e6765a3fe5c7a904c77626
Headers
Series Add AT_RSEQ_* from Linux 6.3 to elf.h |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Joseph Myers May 17, 2023, 9:43 p.m. UTC
  Linux 6.3 adds constants AT_RSEQ_FEATURE_SIZE and AT_RSEQ_ALIGN; add
them to glibc's elf.h.  (Recall that, although elf.h is a
system-independent header, so far we've put AT_* constants there even
if Linux-specific, as discussed in bug 15794.  So rather than making
any attempt to fix that issue, the new constants are just added there
alongside the existing ones.)

Tested for x86_64.
  

Comments

Joseph Myers May 25, 2023, 9:34 p.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2023-May/148234.html> is 
pending review.
  
Florian Weimer May 26, 2023, 6:47 a.m. UTC | #2
* Joseph Myers:

> diff --git a/elf/elf.h b/elf/elf.h
> index 94ca23c1bb..c0803a610e 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -1224,6 +1224,9 @@ typedef struct
>  #define AT_HWCAP2	26		/* More machine-dependent hints about
>  					   processor capabilities.  */
>  
> +#define AT_RSEQ_FEATURE_SIZE	27	/* rseq supported feature size.  */
> +#define AT_RSEQ_ALIGN	28		/* rseq allocation alignment.  */
> +
>  #define AT_EXECFN	31		/* Filename of executable.  */
>  
>  /* Pointer to the global system page used for system calls and other

Okay.

Thanks,
Florian
  

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 94ca23c1bb..c0803a610e 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1224,6 +1224,9 @@  typedef struct
 #define AT_HWCAP2	26		/* More machine-dependent hints about
 					   processor capabilities.  */
 
+#define AT_RSEQ_FEATURE_SIZE	27	/* rseq supported feature size.  */
+#define AT_RSEQ_ALIGN	28		/* rseq allocation alignment.  */
+
 #define AT_EXECFN	31		/* Filename of executable.  */
 
 /* Pointer to the global system page used for system calls and other