-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[NativeAOT/ARM] Bail out on IMAGE_REL_BASED_THUMB_BRANCH24 with >24-bit addends #97756
Conversation
…et the linker generate thunks
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue Details... and let the linker generate thunks. Fixes #97750
|
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/ObjectWriter/ObjectWriter.cs
Outdated
Show resolved
Hide resolved
Is the linker guaranteed to find space to generate the thunks? How reliable is this fix? |
It is not guaranteed to find a space but it should be a hard fail if it does not. In practice I expect this should effectively double the size of code before the error is hit again (to We may investigate alternative mitigation strategies but this is the cheap way to increase the size limit. |
Are the thunks placed outside the managed code section? If they are part the managed code section, there may be fixes needed in the code manager to ignore them. |
That's a good question. They should not interleave with existing code and I assume they would have to be placed at the end of the same section as the code. That means they will not have reliable unwinding data, and that could be a problem (especially if it picks unwinding code from last method). I'll put this back to draft for now and verify the assumptions later. |
The linker creates a separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for checking
... and let the linker generate thunks.
Fixes #97750