Skip to content

Fix rva ordering take2#55861

Closed
davidwrighton wants to merge 5 commits into
dotnet:mainfrom
davidwrighton:fix_rva_ordering_take2
Closed

Fix rva ordering take2#55861
davidwrighton wants to merge 5 commits into
dotnet:mainfrom
davidwrighton:fix_rva_ordering_take2

Conversation

@davidwrighton

Copy link
Copy Markdown
Member
  • Since composite images have the original RVA statics in the original files, use the value from there
  • This required re-enabling the ability of getFieldAddress to return an indirection
  • And adding some new processing for the fixup as needed

Fixes composite mode compilation of src/tests/Directed/rvastatics/RVAOrderingTest.ilproj

Earlier fix was reverted as it broke composite construction of CoreLib, this fix should be more correct.

- This doesn't actually work, as the test needs to be compiled as architecture specific, without ILOnly enabled which our current build pipeline cannot do.
- Also, then crossgen2 will identify the binaries as C++/CLI and refuse to compile them.
@davidwrighton

Copy link
Copy Markdown
Member Author

This only effects C++/CLI scenarios are already unsupported by crossgen2 in .NET 6, so I'm closing this PR for now. I'll update it with a change that fixes the issue, but at this time, I do not think it is worth the risk/cost of fixing the bug in .NET 6.

@davidwrighton davidwrighton reopened this Jul 19, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 18, 2021
@davidwrighton davidwrighton deleted the fix_rva_ordering_take2 branch April 13, 2023 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant