Skip to content

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Dec 21, 2022

Fixes dotnet/runtime#79477, specifically, the problem described in dotnet/runtime#79477 (comment).

This ensures that section starts are aligned by adjusting the previous Range's length to ensure the computed start of a new Range meets the alignment requirements. It was done this way rather than just computing an aligned start for the new Range, because the TextMap assumes that the Ranges are contiguous - see for example GetNextRVA.

@sbomer sbomer requested a review from vitek-karas December 21, 2022 22:36
@marek-safar
Copy link

Please upstream the change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RuntimeHelpers.CreateSpan support is failing in some circumstances
2 participants