This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by pcc on Jan 27 2017, 8:31 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Jan 27 2017, 8:31 PM
This revision was automatically updated to reflect the committed changes.