1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00
freebsd/libexec/rtld-elf
Konstantin Belousov 137aed91e7 Fix AT_EXECPATH for direct exec mode.
When activated in direct exec mode, kernel-provided AT_EXECPATH points
to the interpreter.  We need to recalculate auxv to point to the
string with the path to the executable which is actually executed.

The somewhat problematic case is when the executable path is relative
and either $PATH use is not enabled or it contains '/' so $PATH search
is not performed. In this case resulting AT_EXECPATH is relative, I
might fix this later.

Reported and reviewed by:	rstone
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D22894
2020-01-02 22:48:08 +00:00
..
aarch64
amd64
arm
i386
mips
powerpc
powerpc64
riscv
rtld-libc
sparc64
tests
debug.c
debug.h
libmap.c
libmap.conf
libmap.h
Makefile
Makefile.depend
map_object.c
paths.h
rtld_lock.c
rtld_lock.h
rtld_malloc.c
rtld_malloc.h
rtld_printf.c
rtld_printf.h
rtld_tls.h
rtld_utrace.h
rtld.1
rtld.c Fix AT_EXECPATH for direct exec mode. 2020-01-02 22:48:08 +00:00
rtld.h rtld(1): Do booleans like C99 2019-12-31 05:41:47 +00:00
Symbol.map
xmalloc.c