In #146906, the JIT inlines the address of the function pointer in operand0 however the arm64 relocation does not properly handles large addresses which needs a trampoline.
I think the fix is to generate trampoline for such cases if the address is too large.
Claude suggested the following fix which seems to work: https://gist.github.com/kumaraditya303/45ca837aa1367e65a3bfadca9fae039e
cc @markshannon
Linked PRs
In #146906, the JIT inlines the address of the function pointer in operand0 however the arm64 relocation does not properly handles large addresses which needs a trampoline.
I think the fix is to generate trampoline for such cases if the address is too large.
Claude suggested the following fix which seems to work: https://gist.github.com/kumaraditya303/45ca837aa1367e65a3bfadca9fae039e
cc @markshannon
Linked PRs