Alexey Samsonov 6a6564cd14
[libc] Add more macro/type declarations to Elf headers. (#185348)
* Add several `AT_` macro values from `<sys/auxv.h>`. In particular,
this allows to make internal Linux auxv header parsing more hermetic by
removing one of Linux header includes.
* Add constants between `DT_ADDRNGLO` and `DT_ADDRNGHI`, in particular
`DT_GNU_HASH`, which is de-facto standard on many platforms.
* Add `Elf32_auxv_t` and `Elf64_auxv_t` types which define the auxv
entries and can be used by VDSO parsing code. Note that this PR doesn't
yet update libc's own Linux auxv header support (in
`src/__support/OSUtil/linux/auxv.h`).

This fixes some of the missing definitions when building code working
with Elf files, such as Abseil's debugging support in

https://github.com/abseil/abseil-cpp/tree/master/absl/debugging/internal.
2026-03-09 15:12:54 -07:00
..
2025-02-28 11:43:33 -05:00
2025-02-28 11:43:33 -05:00
2025-02-28 11:43:33 -05:00
2025-05-09 09:02:33 -07:00
2025-02-28 11:43:33 -05:00
2025-02-28 11:43:33 -05:00