From owner-svn-src-head@freebsd.org Tue Oct 23 13:49:54 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E4BDDFD8C1D; Tue, 23 Oct 2018 13:49:53 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99FC17D560; Tue, 23 Oct 2018 13:49:53 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 94D8C10B06; Tue, 23 Oct 2018 13:49:53 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9NDnrX9037465; Tue, 23 Oct 2018 13:49:53 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9NDnrol037464; Tue, 23 Oct 2018 13:49:53 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201810231349.w9NDnrol037464@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Tue, 23 Oct 2018 13:49:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339653 - head/usr.bin/ldd X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/usr.bin/ldd X-SVN-Commit-Revision: 339653 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 13:49:54 -0000 Author: markj Date: Tue Oct 23 13:49:53 2018 New Revision: 339653 URL: https://svnweb.freebsd.org/changeset/base/339653 Log: Add an IMPLEMENTATION NOTES section to ldd.1. PR: 231926 Reviewed by: emaste MFC after: 1 month Modified: head/usr.bin/ldd/ldd.1 Modified: head/usr.bin/ldd/ldd.1 ============================================================================== --- head/usr.bin/ldd/ldd.1 Tue Oct 23 13:44:33 2018 (r339652) +++ head/usr.bin/ldd/ldd.1 Tue Oct 23 13:49:53 2018 (r339653) @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd May 15, 2008 +.Dd October 23, 2018 .Dt LDD 1 .Os .Sh NAME @@ -57,6 +57,14 @@ option displays a verbose listing of the dynamic linki encoded in the executable. See the source code and include files for the definitive meaning of all the fields. +.Sh IMPLEMENTATION NOTES +.Nm +lists the dependencies of an executable by setting +.Xr rtld 1 +environment variables and running the executable in a child process. +If the executable is corrupt or invalid, +.Nm +may therefore fail without providing any diagnostic error messages. .Sh EXAMPLES The following is an example of a shell pipeline which uses the .Fl f @@ -67,6 +75,7 @@ which link against libc.so.6: .Sh SEE ALSO .Xr ld 1 , .Xr nm 1 , +.Xr readelf 1 , .Xr rtld 1 .Sh HISTORY A