opnsense-src/libexec/rtld-elf
Konstantin Belousov 2f72ee987d ldd: remove '[preloaded]' marker for the preloaded objects
for the default output.  For '-a' (per-object needed printout) the
[preloaded] banner is kept.

Instead, use special format2 for printing the preloaded objects (and
vdso), which does not include DT_NEEDED, since there is no object
needing the printed one.

In this way, the output is more compatible with glibc.

Example:
LD_PRELOAD=/lib/libthr.so.3 LD_TRACE_LOADED_OBJECTS=1 /libexec/ld-elf.so.1 /bin/ls
        libutil.so.9 => /lib/libutil.so.9 (0x801099000)
        libncursesw.so.9 => /lib/libncursesw.so.9 (0x8010b0000)
        libc.so.7 => /lib/libc.so.7 (0x801123000)
        [vdso] (0x7ffffffff000)
        /lib/libthr.so.3 (0x80106c000)
Note the absense of the part before and including '=>' for preloaded
libthr.so.3, and for vdso.

PR:	265750
Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D36616
2022-09-22 14:20:13 +03:00
..
aarch64 rtld(1): Fix a typo in a source code comment 2022-09-03 19:16:32 +02:00
amd64 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
arm rtld-elf: Remove libsoft support 2022-01-06 22:44:07 -07:00
i386 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
powerpc TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
powerpc64 TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
riscv TLS: Use <machine/tls.h> for libc and rtld. 2021-12-09 13:23:05 -08:00
rtld-libc Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
tests
debug.c
debug.h
libmap.c rtld-elf/libmap.c: correct comment 2022-09-19 01:49:41 +03:00
libmap.conf
libmap.h rtld-elf/libmap.h: style declarations 2022-09-19 01:49:41 +03:00
Makefile
Makefile.depend
map_object.c Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
rtld.1 rtld.1: Fix misplaced text 2022-02-25 11:16:35 -05:00
rtld.c ldd: remove '[preloaded]' marker for the preloaded objects 2022-09-22 14:20:13 +03:00
rtld.h Have rtld query the page size from the kernel 2022-04-07 15:37:37 +01:00
rtld_lock.c rtld: style the rest of rtld_lock.c 2022-09-04 07:28:02 +03:00
rtld_lock.h
rtld_malloc.c
rtld_malloc.h
rtld_paths.h rtld-elf: Remove libsoft support 2022-01-06 22:44:07 -07:00
rtld_printf.c rtld: add rtld_fdprintfx() 2021-11-13 19:33:13 +02:00
rtld_printf.h rtld: add rtld_fdprintfx() 2021-11-13 19:33:13 +02:00
rtld_tls.h
rtld_utrace.h
Symbol.map
xmalloc.c