diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-09 21:45:27 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-09 21:45:27 +0000 |
commit | e8fa3db80c2b63ccd534533dd3faba4cea7228b8 (patch) | |
tree | 576d27cf7bc73facdc4c3316c2b0c99491e0e78d /libexec/ld.so/library.c | |
parent | 2649d5c18f001d23bb274cca5b01e455722dcc89 (diff) |
Improve support for shared libs linked at non-zero addreses:
- rename private values in struct elf_object to better
describe their meaning:
s/load_offs/obj_base/ "object's address '0' base"
s/load_addr/load_base/ "The base address of the loadable
segments"
- gdb needs the obj_base value so swap positions with load_base in
struct elf_object
- fix a few occurrences of where load_base was used instead of
obj_base.
With help and okay drahn@
Diffstat (limited to 'libexec/ld.so/library.c')
-rw-r--r-- | libexec/ld.so/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/library.c b/libexec/ld.so/library.c index d860a003c0e..b1cdb29bd21 100644 --- a/libexec/ld.so/library.c +++ b/libexec/ld.so/library.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library.c,v 1.55 2008/04/02 02:27:36 drahn Exp $ */ +/* $OpenBSD: library.c,v 1.56 2008/04/09 21:45:26 kurt Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -69,7 +69,7 @@ _dl_unload_shlib(elf_object_t *object) _dl_unload_shlib(n->data); DL_DEB(("unload_shlib unloading on %s\n", object->load_name)); _dl_load_list_free(object->load_list); - _dl_munmap((void *)object->load_addr, object->load_size); + _dl_munmap((void *)object->load_base, object->load_size); _dl_remove_object(object); } } |