Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rva ordering take2 #55861

Closed

Conversation

davidwrighton
Copy link
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
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