summaryrefslogtreecommitdiffstats
path: root/usr.bin/ldd
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-01-10 02:51:00 +0000
committerjdp <jdp@FreeBSD.org>1997-01-10 02:51:00 +0000
commit511c6ad118acd78eda46a9a38c7945bb6f476926 (patch)
tree7b3d4b41cf4571786ebbc571e36fa76942b40c81 /usr.bin/ldd
parent6bc7586f770bff744a145729c21296bcadf6f751 (diff)
downloadFreeBSD-src-511c6ad118acd78eda46a9a38c7945bb6f476926.zip
FreeBSD-src-511c6ad118acd78eda46a9a38c7945bb6f476926.tar.gz
For "ldd -v", print shared object dependencies that were specified as
pathnames (rather than as "-lfoo") correctly. Closes PR bin/2404.
Diffstat (limited to 'usr.bin/ldd')
-rw-r--r--usr.bin/ldd/sods.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ldd/sods.c b/usr.bin/ldd/sods.c
index 4a9e904..6fe907d 100644
--- a/usr.bin/ldd/sods.c
+++ b/usr.bin/ldd/sods.c
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: sods.c,v 1.1 1996/10/01 02:16:16 peter Exp $
*/
#include <assert.h>
@@ -386,8 +386,11 @@ dump_sods()
const struct sod *sodp = (const struct sod *) (text_addr + sod_offset);
const char *name = (const char *) (text_addr + sodp->sod_name);
- printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
- sodp->sod_minor);
+ if (sodp->sod_library)
+ printf(" -l%-16s version %d.%d\n", name, sodp->sod_major,
+ sodp->sod_minor);
+ else
+ printf(" %s\n", name);
sod_offset = sodp->sod_next;
}
paths_offset = sdt->sdt_paths;
OpenPOWER on IntegriCloud