opnsense-src/libexec/rtld-elf
Konstantin Belousov 0fc65b0ab8 Make ld-elf.so.1 directly executable.
Check if passed phdr is actually phdr of the interpreter itself, and
decide that this is the case of direct execution.  In this case, the
binary to activate is specified in the argv[1].  After opening it,
shift down on-stack structure with argv, env and aux vectors to
emulate execution of the binary and not of the interpreter.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D10701
2017-05-15 18:48:58 +00:00
..
aarch64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
amd64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
arm Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
i386 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
mips Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
powerpc Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
powerpc64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
riscv Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
sparc64 Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
tests Increase WARNS for rtld-elf tests 2017-03-11 00:10:40 +00:00
debug.c Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and 2016-01-20 07:21:33 +00:00
debug.h Remove historical GNUC test 2015-05-06 15:29:11 +00:00
libmap.c Rather than using the #define for path names, indirect through a char * 2015-10-31 04:39:55 +00:00
libmap.h Make the directory mapping functionality, which was previously only 2013-09-21 21:03:52 +00:00
Makefile Convert absolute links to relative links. 2017-03-07 05:10:38 +00:00
Makefile.depend new depends 2015-06-16 23:37:19 +00:00
malloc.c libexec: minor spelling fixes in comments. 2016-05-01 19:39:23 +00:00
map_object.c Fix the AT_EXECFD functionality. 2017-05-15 18:47:25 +00:00
paths.h Convert casperd(8) daemon to the libcasper. 2016-02-25 18:23:40 +00:00
rtld.1 rtld(1): Document that LD_BIND_NOT is unset for setugid processes. 2017-03-16 22:15:43 +00:00
rtld.c Make ld-elf.so.1 directly executable. 2017-05-15 18:48:58 +00:00
rtld.h Implement LD_BIND_NOT knob for rtld. 2017-03-15 21:11:57 +00:00
rtld_lock.c Fix acquisition of nested write compat rtld locks. 2017-01-10 19:26:55 +00:00
rtld_lock.h Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
rtld_printf.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rtld_printf.h Add the LD_LIBRARY_PATH_FDS environmental variable. 2014-06-20 17:08:32 +00:00
rtld_tls.h Change compiler setting to make default visibility of the symbols for 2015-03-29 18:53:21 +00:00
rtld_utrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Symbol.map Add rtld private interface for dso to detect dynamic loading 2015-01-03 18:09:53 +00:00
xmalloc.c Increase alignment to size of pointer if the alignment is too small. 2014-02-22 11:06:48 +00:00