]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys/param.h: Add _WANT_P_OSREL
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 14 Feb 2023 08:52:14 +0000 (10:52 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 15 Feb 2023 00:43:18 +0000 (02:43 +0200)
commit5942b4b6fde3f4ce6d0295fbcf135f552f92c607
treec80fa1a832ea52fbcd701ecc1e311aaaa5f24354
parent4b0552d5f4ea0bd09d7f0f178810886472e84d63
sys/param.h: Add _WANT_P_OSREL

Use it instead of defining IN_RTLD by base sources that want P_OSREL_
defines in userspace, but are not rtld.
This allows to remove abuse of IN_RTLD from userspace.

Reviewed by: dchagin, markj, imp
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D38585
lib/libc/amd64/sys/amd64_get_fsbase.c
lib/libc/amd64/sys/amd64_get_gsbase.c
lib/libc/amd64/sys/amd64_set_fsbase.c
lib/libc/amd64/sys/amd64_set_gsbase.c
libexec/rtld-elf/amd64/reloc.c
libexec/rtld-elf/map_object.c
sbin/fsck_ffs/main.c
sbin/newfs/mkfs.c
sys/sys/param.h