HomePhabricator

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

Authored by pcc on Jan 4 2017, 10:56 AM.

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

llvm-svn: 290986