forked from bloomberg/memray
-
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.
Don't rely on architecture information to get the type of the PLT table
The PLT/Jump table can have different entry types depending on the phase of the moon, the position of the planets, the current weather and other unpredictable stuff. Normally x86_64 uses RELA entries, and x86 uses REL entries. But sometimes it doesn't happen, so we need to check the DT_PLTREL tag to see which one we should use at runtime. This method is more reliable than assuming that 64 bits means RELA and 32 bits mean REL.
- Loading branch information
Showing
2 changed files
with
32 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