Implement %x for ELF.
This commit is contained in:
parent
39dacd3455
commit
f835ef11b6
|
@ -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.
|
||||
.\" All rights reserved.
|
||||
|
@ -108,7 +108,7 @@ The full pathname as determined by
|
|||
.Nm rtld Ns 's
|
||||
library search rules.
|
||||
.It \&%x
|
||||
The library's load address (a.out only, ignored in elf).
|
||||
The library's load address
|
||||
.El
|
||||
.Pp
|
||||
Additionally,
|
||||
|
|
|
@ -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.
|
||||
|
@ -316,7 +316,7 @@ fmtprint(const char *libname, Obj_Entry *obj, const char *fmt1,
|
|||
printf("%s", libpath);
|
||||
break;
|
||||
case 'x':
|
||||
/* XXX: not supported for elf */
|
||||
printf("%p", obj->mapbase);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue