Skip to content

Conversation

@kddnewton
Copy link

@kddnewton kddnewton commented Dec 22, 2025

Closes #499.

When relocating aarch64 code, instead of failing to emit relative jumps when it is not possible, instead add a veneer section to the end of the generated code to function as trampolines. This generally allows the workflow of calling b/bl with an absolute address without having to worry about it failing to generate if the target is too far.

I'm pretty sure about the code, but was relatively unsure about the tests. @kobalicek please let me know if you have time to review and if you're okay with the tests as they stand or if you would like changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AArch64 relative branching selection

1 participant