Skip to content

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
@github-actions github-actions bot locked and limited conversation to collaborators May 2, 2025
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.

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

3 participants