diff options
author | jdp <jdp@FreeBSD.org> | 1997-01-10 02:51:00 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-01-10 02:51:00 +0000 |
commit | 511c6ad118acd78eda46a9a38c7945bb6f476926 (patch) | |
tree | 7b3d4b41cf4571786ebbc571e36fa76942b40c81 /gnu/usr.bin | |
parent | 6bc7586f770bff744a145729c21296bcadf6f751 (diff) | |
download | FreeBSD-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 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/ld/ldd/sods.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/ldd/sods.c b/gnu/usr.bin/ld/ldd/sods.c index 4a9e904..6fe907d 100644 --- a/gnu/usr.bin/ld/ldd/sods.c +++ b/gnu/usr.bin/ld/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; |