elf: Align argument of __munmap to page size [BZ #28676]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 13 Dec 2021 15:17:29 +0000 (07:17 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 14 Dec 2021 15:16:51 +0000 (07:16 -0800)
commitfd6062ede31963a1a10a77e66582a795ecff9ba1
tree7f57f424f5f60a6cc895184935721c2bc09bae06
parent0884724a95b60452ad483dbe086d237d02ba624d
elf: Align argument of __munmap to page size [BZ #28676]

On Linux/x86-64, for elf/tst-align3, we now get

munmap(0x7f88f9401000, 1126424)         = 0

instead of

munmap(0x7f1615200018, 544768)          = -1 EINVAL (Invalid argument)

Reviewed-by: Florian Weimer <fweimer@redhat.com>
elf/dl-map-segments.h