summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2001-11-06 15:32:11 +0000
committerdrahn <drahn@openbsd.org>2001-11-06 15:32:11 +0000
commit1933d1a6404fe51f5c63f9dacc10d16a998a9c8e (patch)
tree616fdc007730ce65eefd42fdd147c954efaa9c10
parentDon't Xref old inexistant manpages. (diff)
downloadwireguard-openbsd-1933d1a6404fe51f5c63f9dacc10d16a998a9c8e.tar.xz
wireguard-openbsd-1933d1a6404fe51f5c63f9dacc10d16a998a9c8e.zip
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;
}
}