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