-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read the auxv in library constructor
Having `putenv()` called overwrites the auxiliary vector, giving garbage values for the vDSO base address and the page size. Reading these values from the auxiliary constructor during the startup phase, before any actual program code executes prevents the issue. The auxiliary vector is only read once and stored as a static variable.
- Loading branch information
1 parent
e24f7a8
commit 3d85e09
Showing
2 changed files
with
16 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