]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add AT_BSDFLAGS auxv entry.
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 9 Feb 2020 12:10:37 +0000 (12:10 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Sun, 9 Feb 2020 12:10:37 +0000 (12:10 +0000)
commit944cf37bb581e4e7c92823def2f0ebfa524d379f
tree6b56bc1951d38a9b37c1c686982647cd520b81f2
parentf88c67a625b83004cd93f7ef30c0a0d36e881163
Add AT_BSDFLAGS auxv entry.

The intent is to provide bsd-specific flags relevant to interpreter
and C runtime.  I did not want to reuse AT_FLAGS which is common ELF
auxv entry.

Use bsdflags to report kernel support for sigfastblock(2).  This
allows rtld and libthr to safely infer the syscall presence without
SIGSYS.  The tunable kern.elf{32,64}.sigfastblock blocks reporting.

Tested by: pho
Disscussed with: cem, emaste, jilles
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D12773
sys/kern/imgact_elf.c
sys/sys/elf_common.h
usr.bin/procstat/procstat_auxv.c