Skip to content

Fix handling of empty RUNTIME_FUNCTIONs sections in R2R #114091

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Apr 1, 2025

  • Do not set RVA for empty RUNTIME_FUNCTION section in crossgen2
  • Do not register empty RUNTIME_FUNCTIONs section at runtime

Fixes #113117

- Do not set RVA for empty RUNTIME_FUNCTION section in crossgen2
- Do not register empty RUNTIME_FUNCTIONs section at runtime

Fixes dotnet#113117
@Copilot Copilot AI review requested due to automatic review settings April 1, 2025 02:20
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the handling of empty RUNTIME_FUNCTION sections in ReadyToRun by ensuring that an RVA is not set and an empty section is not registered.

  • Added a condition to check that the runtime functions table is non-empty before assigning the exception table.
  • Prevents registration of empty RUNTIME_FUNCTION sections at runtime.
Files not reviewed (1)
  • src/coreclr/vm/peimagelayout.cpp: Language not supported

Copy link
Member

@elinor-fung elinor-fung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jkotas
Copy link
Member Author

jkotas commented Apr 1, 2025

/ba-g Networking tests

@jkotas jkotas merged commit 492f6f7 into dotnet:main Apr 1, 2025
97 of 99 checks passed
@jkotas jkotas deleted the issue-113117 branch April 1, 2025 19:06
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.

Test failure: Loader/ExternalAssemblyProbe/ExternalAssemblyProbe/ExternalAssemblyProbe.cmd
3 participants