diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-addr.c | 2 | ||||
-rw-r--r-- | elf/dl-close.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/elf/dl-addr.c b/elf/dl-addr.c index 2fda238cfb..ed183b1054 100644 --- a/elf/dl-addr.c +++ b/elf/dl-addr.c @@ -26,7 +26,7 @@ int internal_function _dl_addr (const void *address, Dl_info *info) { - const ElfW(Addr) addr = (ElfW(Addr)) address; + const ElfW(Addr) addr = DL_LOOKUP_ADDRESS (address); struct link_map *l, *match; const ElfW(Sym) *symtab, *matchsym; const char *strtab; diff --git a/elf/dl-close.c b/elf/dl-close.c index 40bc6f7202..f62c171654 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -167,8 +167,7 @@ _dl_close (void *_map) /* We can unmap all the maps at once. We determined the start address and length when we loaded the object and the `munmap' call does the rest. */ - __munmap ((void *) imap->l_map_start, - imap->l_map_end - imap->l_map_start); + DL_UNMAP (imap); /* Finally, unlink the data structure and free it. */ #ifdef SHARED |