]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sysdeps: linux: Fix output of LD_SHOW_AUXV=1 for AT_RSEQ_*
authorYannick Le Pennec <yannick.lepennec@live.fr>
Mon, 25 Nov 2024 13:12:05 +0000 (14:12 +0100)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 25 Nov 2024 19:45:59 +0000 (16:45 -0300)
The constants themselves were added to elf.h back in 8754a4133e but the
array in _dl_show_auxv wasn't modified accordingly, resulting in the
following output when running LD_SHOW_AUXV=1 /bin/true on recent Linux:

    AT_??? (0x1b): 0x1c
    AT_??? (0x1c): 0x20

With this patch:

    AT_RSEQ_FEATURE_SIZE: 28
    AT_RSEQ_ALIGN:        32

Tested on Linux 6.11 x86_64

Signed-off-by: Yannick Le Pennec <yannick.lepennec@live.fr>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/dl-sysdep.c

index a8ec2d7c18cc423e01b26069ce5ad4248b710ead..4352549f0137d4b1ae6928da9afb33bab6fba2a9 100644 (file)
@@ -200,6 +200,8 @@ _dl_show_auxv (void)
          [AT_HWCAP2 - 2] =             { "HWCAP2:            0x", hex },
          [AT_HWCAP3 - 2] =             { "HWCAP3:            0x", hex },
          [AT_HWCAP4 - 2] =             { "HWCAP4:            0x", hex },
+         [AT_RSEQ_FEATURE_SIZE - 2] =  { "RSEQ_FEATURE_SIZE: ", dec },
+         [AT_RSEQ_ALIGN - 2] =         { "RSEQ_ALIGN:        ", dec },
          [AT_MINSIGSTKSZ - 2] =        { "MINSIGSTKSZ:       ", dec },
          [AT_L1I_CACHESIZE - 2] =      { "L1I_CACHESIZE:     ", dec },
          [AT_L1I_CACHEGEOMETRY - 2] =  { "L1I_CACHEGEOMETRY: 0x", hex },