diff options
author | John Polstra <jdp@FreeBSD.org> | 1997-01-10 02:51:00 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1997-01-10 02:51:00 +0000 |
commit | 775f9cd54d51023dbc82f1d49a81245c6b821a47 (patch) | |
tree | 7b3d4b41cf4571786ebbc571e36fa76942b40c81 /usr.bin | |
parent | 9c1fc5f52b5335ec305c0099347c7a7b085195f9 (diff) | |
download | src-775f9cd54d51023dbc82f1d49a81245c6b821a47.tar.gz src-775f9cd54d51023dbc82f1d49a81245c6b821a47.zip |
For "ldd -v", print shared object dependencies that were specified as
pathnames (rather than as "-lfoo") correctly.
Closes PR bin/2404.
Notes
Notes:
svn path=/head/; revision=21469
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ldd/sods.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ldd/sods.c b/usr.bin/ldd/sods.c index 4a9e904d4980..6fe907d53dd3 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; |