]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add AT_RSEQ_* from Linux 6.3 to elf.h
authorJoseph Myers <joseph@codesourcery.com>
Fri, 26 May 2023 15:03:31 +0000 (15:03 +0000)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 16 Jul 2024 15:24:53 +0000 (17:24 +0200)
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.

(cherry picked from commit 8754a4133e154ca853e6765a3fe5c7a904c77626)

elf/elf.h

index 4bc0e4299c3a4c8ffa5a4be077af273a16286ecf..4a1058d92de86d08587e13743e48b1758c2b0019 100644 (file)
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -1223,6 +1223,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