Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2017 19:48:57 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r327116 - head/usr.bin/ldd
Message-ID:  <201712231948.vBNJmvfi042771@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712231948.vBNJmvfi042771>