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
This commit is contained in:
parent
16545cf5d5
commit
4f8efc2274
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327116
@ -63,7 +63,7 @@ The following is an example of a shell pipeline which uses the
|
||||
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 ,
|
||||
|
Loading…
Reference in New Issue
Block a user