summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-04-21 14:35:51 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-04-21 14:35:51 +0000
commita4996b8ebe26d26a7497ebf71caef0c0e712f530 (patch)
treef3ad766ef65a59f264609b3a2c3cce786a88e15b
parent30d92f113104a5670dd01ec274938a553a5f9b90 (diff)
Fix the load_size which is used by ldd to print end address.
-rw-r--r--libexec/ld.so/library_mquery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/library_mquery.c b/libexec/ld.so/library_mquery.c
index 6236d18d141..cec2fa9c366 100644
--- a/libexec/ld.so/library_mquery.c
+++ b/libexec/ld.so/library_mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library_mquery.c,v 1.2 2003/04/18 12:38:39 drahn Exp $ */
+/* $OpenBSD: library_mquery.c,v 1.3 2003/04/21 14:35:50 drahn Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -523,7 +523,7 @@ retry:
object = _dl_add_object(libname, dynp, 0, type,
(Elf_Addr)lowld->start, LOFF);
if (object) {
- object->load_size = (Elf_Addr)lowld->start - (Elf_Addr)load_end;
+ object->load_size = (Elf_Addr)load_end - (Elf_Addr)lowld->start;
object->load_list = lowld;
} else {
_dl_load_list_free(lowld);