Skip to content
Snippets Groups Projects
Commit 4bf336ca authored by Ben Gamari's avatar Ben Gamari
Browse files

linker/PEi386: Don't sign-extend symbol section number

Previously we incorrectly interpreted PE section numbers as signed
values. However, this isn't the case; rather, it's an unsigned 16-bit number
with a few special bit-patterns (0xffff and 0xfffe). This resulted in #22941
as the linker would conclude that the sections were invalid.

Fixing this required quite a bit of refactoring.

Closes #22941.
parent 02e6a6ce
No related branches found
No related tags found
No related merge requests found
Pipeline #81944 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment