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.
This mimics what
ld.so
does by aligning the virtual addresses to the current page size, and fixes: