freebsd-skq/libexec/rtld-elf
Mariusz Zaborski f90218886f rtld: introduce PRELOAD_FDS
The new PRELOAD_FDS variable accepts a list of file descriptors
that should be loaded into the process.

This may be used to optimize a loading process - in the case when
we already have a file descriptor to the library; we don't have
to look into multiple PATH to find it.

It may also be used in capability mode to load a single additional
library without the need to open a directory that contains it.

The last use of this functionality t may be a race-free method
of loading libraries.

Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D29334
2021-03-24 23:40:48 +01:00
..
aarch64 rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
amd64 rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
arm rtld-elf: link libcompiler_rt on all architectures 2020-12-28 00:44:25 -08:00
i386 rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
mips rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
powerpc rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
powerpc64 rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
riscv rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
rtld-libc libc: Use musl's optimized strchr and strchrnul 2021-03-01 21:09:59 -05:00
tests rtld: introduce PRELOAD_FDS 2021-03-24 23:40:48 +01:00
debug.c
debug.h Use rtld_putstr() instead of write() for the rtld msg() macro 2019-06-26 15:43:26 +00:00
libmap.c rtld: call close(2) after errno is saved 2021-01-02 04:43:32 +02:00
libmap.conf
libmap.h
Makefile rtld-elf: link libcompiler_rt on all architectures 2020-12-28 00:44:25 -08:00
Makefile.depend
map_object.c Undo 'fix off by one' part of r365360. 2020-09-05 22:48:27 +00:00
paths.h
rtld_lock.c Use sigfastblock(2) in rtld. 2020-02-09 12:22:43 +00:00
rtld_lock.h
rtld_malloc.c Remove remnants of optimization for > pagesize allocations. 2019-09-02 08:03:29 +00:00
rtld_malloc.h Add header file missed in r343564. 2019-01-29 22:45:24 +00:00
rtld_printf.c Reduce size of rtld by 22% by pulling in less code from libc 2019-06-30 11:49:58 +00:00
rtld_printf.h Use rtld_putstr() instead of write() for the rtld msg() macro 2019-06-26 15:43:26 +00:00
rtld_tls.h Remove sparc64 specific parts of rtld-elf. 2020-02-26 18:49:25 +00:00
rtld_utrace.h
rtld.1 rtld: introduce PRELOAD_FDS 2021-03-24 23:40:48 +01:00
rtld.c rtld: introduce PRELOAD_FDS 2021-03-24 23:40:48 +01:00
rtld.h rtld-elf(1): remove obsolete pre_init() hook 2020-12-25 19:47:46 +01:00
Symbol.map Add version indicators to rtld. 2020-05-26 19:22:46 +00:00
xmalloc.c Make p_vaddr % p_align == p_offset % p_align for (some) TLS segments. 2020-04-04 22:37:50 +00:00