From fcccd51286acbf9c19ac57ab7143e257d58323fd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 3 Apr 2014 10:47:14 -0700 Subject: Factor mmap/munmap of PT_LOAD segments out of _dl_map_object_from_fd et al. --- sysdeps/aarch64/tlsdesc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/aarch64/tlsdesc.c') diff --git a/sysdeps/aarch64/tlsdesc.c b/sysdeps/aarch64/tlsdesc.c index 0921230..1b41819 100644 --- a/sysdeps/aarch64/tlsdesc.c +++ b/sysdeps/aarch64/tlsdesc.c @@ -23,6 +23,7 @@ #include #include #include +#include #include /* The following functions take an entry_check_offset argument. It's @@ -144,8 +145,7 @@ void internal_function _dl_unmap (struct link_map *map) { - __munmap ((void *) (map)->l_map_start, - (map)->l_map_end - (map)->l_map_start); + _dl_unmap_segments (map); #if SHARED if (map->l_mach.tlsdesc_table) -- cgit v1.1