-
-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ELF] Protect the last page of a RELRO segment
PT_GNU_RELRO works on page granularity. We always align the begining of a RELRO segment to a page boundary, but the end was not. Since the runtime conservatively align _down_ it to a page boundary, the last page weren't be marked as read-only. This patch makes the size of a RELRO always a multiple of the page size.
- Loading branch information
Showing
2 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters