-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Page-align offset before calculating virtual addresses for ELF
This mimics what `ld.so` does by aligning the virtual addresses to the current page size, and fixes: - Existing issues with DSOs produced by LLD which, unlike gold or BFD, doesn't align p_vaddr to p_align (the previous overflow prevention wasn't sufficient here). - Systems w/ configurable page sizes, where just using p_align isn't enough.
- Loading branch information
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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