summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-11-06 15:32:12 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-11-06 15:32:12 +0000
commit1c0a1a534d87ced0c6089cb972b59491152bbdfa (patch)
tree7f69f5b75a8cbf78847bd49b93ec1d2d1093daa3
parent3dfc8314cb68e51304c8c1a93261a99fc7e2a457 (diff)
Since the header of the file map is Start End,
print the end address, not the size.
-rw-r--r--libexec/ld.so/dlfcn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ld.so/dlfcn.c b/libexec/ld.so/dlfcn.c
index ce577070d0b..39a570c31d0 100644
--- a/libexec/ld.so/dlfcn.c
+++ b/libexec/ld.so/dlfcn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dlfcn.c,v 1.10 2001/09/29 03:18:59 drahn Exp $ */
+/* $OpenBSD: dlfcn.c,v 1.11 2001/11/06 15:32:11 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -299,8 +299,9 @@ _dl_show_objects()
break;
}
_dl_printf("\t%X %X %s %d %s\n", object->load_addr,
- object->load_size, objtypename,
- object->refcount, object->load_name);
+ object->load_addr + object->load_size,
+ objtypename, object->refcount,
+ object->load_name);
object = object->next;
}
}