Implement %x for ELF.

This commit is contained in:
skrll 2004-05-23 06:51:05 +00:00
parent 39dacd3455
commit f835ef11b6
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ldd.1,v 1.11 2004/05/14 22:07:21 wiz Exp $ .\" $NetBSD: ldd.1,v 1.12 2004/05/23 06:51:05 skrll Exp $
.\" .\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc. .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved. .\" All rights reserved.
@ -108,7 +108,7 @@ The full pathname as determined by
.Nm rtld Ns 's .Nm rtld Ns 's
library search rules. library search rules.
.It \&%x .It \&%x
The library's load address (a.out only, ignored in elf). The library's load address
.El .El
.Pp .Pp
Additionally, Additionally,

View File

@ -1,4 +1,4 @@
/* $NetBSD: ldd.c,v 1.23 2004/05/14 22:04:01 christos Exp $ */ /* $NetBSD: ldd.c,v 1.24 2004/05/23 06:51:05 skrll Exp $ */
/*- /*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -316,7 +316,7 @@ fmtprint(const char *libname, Obj_Entry *obj, const char *fmt1,
printf("%s", libpath); printf("%s", libpath);
break; break;
case 'x': case 'x':
/* XXX: not supported for elf */ printf("%p", obj->mapbase);
break; break;
} }
break; break;