svn commit: r327116 - head/usr.bin/ldd
Eitan Adler
eadler at FreeBSD.org
Sat Dec 23 19:48:58 UTC 2017
Author: eadler
Date: Sat Dec 23 19:48:57 2017
New Revision: 327116
URL: https://svnweb.freebsd.org/changeset/base/327116
Log:
ldd: avoid statically linked executables in example
The example works but spews warnings if run over a directory with
statically linked binaries.
PR: 211024
Submitted by: mike at skew.org
Modified:
head/usr.bin/ldd/ldd.1
Modified: head/usr.bin/ldd/ldd.1
==============================================================================
--- head/usr.bin/ldd/ldd.1 Sat Dec 23 18:07:43 2017 (r327115)
+++ head/usr.bin/ldd/ldd.1 Sat Dec 23 19:48:57 2017 (r327116)
@@ -63,7 +63,7 @@ The following is an example of a shell pipeline which
option.
It will print a report of all ELF binaries in the current directory,
which link against libc.so.6:
-.Dl "find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep libc.so.6"
+.Dl "find . -type f | xargs -n1 file -F ' ' | grep 'ELF.*dynamically' | cut -f1 -d' ' | xargs ldd -f '%A %o\en' | grep libc.so.6"
.Sh SEE ALSO
.Xr ld 1 ,
.Xr nm 1 ,
More information about the svn-src-all
mailing list