HomePhabricator

ELF: Round p_memsz of the PT_GNU_RELRO program header up to the page size.

Description

ELF: Round p_memsz of the PT_GNU_RELRO program header up to the page size.

The glibc dynamic loader rounds the size down, so without this the loader
will fail to change the memory protection for the last page.

Differential Revision: https://reviews.llvm.org/D28267

Details

Committed
pccJan 4 2017, 10:56 AM
Differential Revision
D28267: ELF: Round p_memsz of the PT_GNU_RELRO program header up to the page size.
Branches
Unknown
Tags
Unknown