freebsd-dev/libexec/rtld-elf/rtld-libc
Konstantin Belousov 510b525fa5 rtld: set osrel when in the direct exec mode.
Rtld itself is a shared object which does not have vendor note, so
after the direct exec of ld-elf.so.1 process has p_osrel set to zero.
This affects the ABI of syscalls.

Set osrel to the __FreeBSD_version value at compile time right after
rtld identified direct exec mode.  Then, switch to the osrel read from
the binary note or zero if no note, right before starting calling
ifunc resolvers, which is the first byte of the user code.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2020-06-12 22:10:03 +00:00
..
libc_private.h
Makefile.inc rtld: set osrel when in the direct exec mode. 2020-06-12 22:10:03 +00:00
namespace.h
rtld_libc.c
rtld_libc.h
un-namespace.h