aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-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 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;