diff options
Diffstat (limited to 'elf/dl-map-segments.h')
-rw-r--r-- | elf/dl-map-segments.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/dl-map-segments.h b/elf/dl-map-segments.h index 70a4c40695..54e606aa87 100644 --- a/elf/dl-map-segments.h +++ b/elf/dl-map-segments.h @@ -55,6 +55,7 @@ _dl_map_segment (const struct loadcmd *c, ElfW(Addr) mappref, if (delta) __munmap ((void *) map_start, delta); ElfW(Addr) map_end = map_start_aligned + maplength; + map_end = ALIGN_UP (map_end, GLRO(dl_pagesize)); delta = map_start + maplen - map_end; if (delta) __munmap ((void *) map_end, delta); |