Skip to content
Commit 4a72c387 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

ELF: Align RELRO to the target page size rather than the max page size.

If no bss sections appear after the relro segment, the loader will round
the r/w segment size to the target's page size. Align the relro size in the
same way to ensure that it does not extend past the end of the program's
own memory region.

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

llvm-svn: 293519
parent 3a72a008
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment