| Summary: | ldd(1) man page example should avoid statically linked files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | mike | ||||
| Component: | Books & Articles | Assignee: | Eitan Adler <eadler> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | Keywords: | patch | ||||
| Priority: | --- | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
A commit references this bug: Author: eadler Date: Sat Dec 23 19:48:57 UTC 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 Changes: head/usr.bin/ldd/ldd.1 Committed. For the record we generally prefer unified diffs (diff -u). |
Created attachment 172398 [details] suggested change to ldd(1) man page example An example in the ldd(1) man page lists the ELF binaries in the current directory which link against libc.so.6. The example works, but displays numerous "not a dynamic ELF executable" errors if run in, say, /usr/bin. The warnings could be avoided and the example could be improved by avoiding statically linked files. A simple patch is attached.