about summary refs log tree commit diff
path: root/elf/dl-fptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-fptr.c')
-rw-r--r--elf/dl-fptr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/dl-fptr.c b/elf/dl-fptr.c
index 40cb40a3f1..f1478e26bb 100644
--- a/elf/dl-fptr.c
+++ b/elf/dl-fptr.c
@@ -25,6 +25,7 @@
 #include <ldsodefs.h>
 #include <elf/dynamic-link.h>
 #include <dl-fptr.h>
+#include <dl-unmap-segments.h>
 #include <atomic.h>
 
 #ifndef ELF_MACHINE_BOOT_FPTR_TABLE_LEN
@@ -269,8 +270,7 @@ _dl_unmap (struct link_map *map)
   struct fdesc *head = NULL, *tail = NULL;
   size_t i;
 
-  __munmap ((void *) map->l_map_start,
-	    map->l_map_end - map->l_map_start);
+  _dl_unmap_segments (map);
 
   if (ftab == NULL)
     return;