freebsd-dev/libexec
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
..
atf testing: provide meaningful error when pytest is not available 2022-07-06 19:55:58 +00:00
atrun
blacklistd-helper
bootpd bootptest: Fix a typo in a source code comment 2022-09-15 10:28:52 +02:00
comsat
dma dma: make the version exposed reflect the new version 2021-09-22 11:12:04 +02:00
fingerd
flua
ftpd ftp: Use /var/spool/ftp as ftp's home consistently 2022-06-28 15:20:05 +02:00
getty pkgbase: Put more binaries/lib in runtime 2021-12-21 10:17:27 +01:00
hyperv pkgbase: Create a FreeBSD-hyperv package 2021-09-07 10:24:54 +02:00
mail.local
makewhatis.local
mknetid
phttpget
pppoed
rbootd
rc rc.d/var_run: Add needed "shutdown" keyword 2022-09-20 11:44:11 -07:00
revnetgroup
rpc.rquotad pkgbase: Create a FreeBSD-nfs package 2021-06-19 17:49:50 +02:00
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rtld-elf ldd: remove '[preloaded]' marker for the preloaded objects 2022-09-22 14:20:13 +03:00
rtld-elf32
save-entropy
smrsh
talkd
tcpd pkgbase: Create a FreeBSD-tcpd package 2021-12-21 10:17:31 +01:00
telnetd ncurses: chase dependency changes in the source tree 2021-10-04 11:38:24 +02:00
tests
tftp-proxy (t)ftp-proxy: use libpfctl 2021-04-10 11:16:02 +02:00
tftpd
ulog-helper
ypxfr pkgbase: Put yellow pages programs to its own package 2021-12-21 10:17:22 +01:00
Makefile
Makefile.amd64
Makefile.i386
Makefile.inc