Skip to content

PE: Skip base relocations when the image is loaded at the desired base address - #888

Merged
ltfish merged 1 commit into
masterfrom
perf/pe-skip-noop-base-relocs
Nov 12, 2026
Merged

ltfish merged 1 commit into
masterfrom
perf/pe-skip-noop-base-relocs

Conversation

@ltfish

@ltfish ltfish commented Nov 12, 2026

Copy link
Copy Markdown
Member

No description provided.

At the preferred base a base relocation has nothing to fix up, but each one still loaded,
recomputed and stored its bytes: 0.56 s for OUTLOOK.EXE's 234k relocations. Some fixups were not
even the identity there: IMAGE_REL_BASED_HIGH zeroed its field.
@ltfish ltfish self-assigned this Nov 12, 2026
@angr-bot

Copy link
Copy Markdown
Member

Corpus decompilation diffs can be found at angr/dec-snapshots@master...angr/cle_888

@ltfish
ltfish merged commit cafafe4 into master Nov 12, 2026
19 of 20 checks passed
@ltfish
ltfish deleted the perf/pe-skip-noop-base-relocs branch November 12, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants