Dynamic relocations support#353
Merged
erocarrera merged 7 commits intoerocarrera:masterfrom Feb 1, 2023
Merged
Conversation
Owner
|
This is a great PR, thank you! |
zjgcjy
reviewed
Apr 12, 2023
| __IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION_format__ = ( | ||
| "IMAGE_INDIR_CONTROL_TRANSFER_DYNAMIC_RELOCATION", | ||
| ( | ||
| "I:12,PageRelativeOffset", |
Contributor
There was a problem hiding this comment.
type error, which is actually WORD
| "I,DynamicValueRelocTableOffset", | ||
| "H,DynamicValueRelocTableSection", | ||
| "H,Reserved2", | ||
| "I,GuardRFVerifyStackPointerFunctionPointer" |
Contributor
|
#374 has fixed them |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support of
IMAGE_DYNAMIC_RELOCATION_TABLEin PE file.There are also issues about extending format of
IMAGE_LOAD_CONFIG_DIRECTORYhere #220 and here #317.I added support of load config because it contains dynamic relocation information.
From winnt.h:
Some description of dynamic relocations structures could also be found here.
And some example code here.
Also related to that is a retpoline presentation with details about dynamic relocation types like
IMAGE_IMPORT_CONTROL_TRANSFER_DYNAMIC_RELOCATION.