aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/tlsdesc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/tlsdesc.c')
-rw-r--r--sysdeps/i386/tlsdesc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/tlsdesc.c b/sysdeps/i386/tlsdesc.c
index 9b6e359..ef4a1dd 100644
--- a/sysdeps/i386/tlsdesc.c
+++ b/sysdeps/i386/tlsdesc.c
@@ -21,6 +21,7 @@
#include <elf/dynamic-link.h>
#include <tls.h>
#include <dl-tlsdesc.h>
+#include <dl-unmap-segments.h>
#include <tlsdeschtab.h>
/* The following 4 functions take an entry_check_offset argument.
@@ -258,8 +259,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)