]> git.ipfire.org Git - thirdparty/glibc.git/commit
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)
commit83d4b42ded712bbbc22ceeefe886b8315190da5b
tree32b1a9d9f8e48fd48411d2d5f8cca5d0bc92c250
parent4b7cfcc3fbfab55a1bbb32a2da69c048060739d6
sysdeps: linux: Fix output of LD_SHOW_AUXV=1 for AT_RSEQ_*

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