HomeFreeBSD

libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined

Description

libc: Make elf_aux_info() return an error if AT_USRSTACK* is undefined

Otherwise we do not fall back to sysctls if the auxv entries are not
defined by the kernel. Arguably this is not a bug since we do not
support newer libc running on an older kernel, but we can be a bit more
gentle for the benefit of Valgrind or any other software which
synthesizes the auxv for virtualization purposes.

Reported by: Paul Floyd <paulf2718@gmail.com>
Reviewed by: brooks, kib

(cherry picked from commit a4ee0edc4a0b3f880463021c7ae1bdcf7112f3d6)

Details

Provenance
markjAuthored on Oct 18 2022, 10:11 PM
Parents
rGbc53b440fbd2: rtld: remove unused macro FPTR_TARGET
Branches
Unknown
Tags
Unknown