Skip to content
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

Lazily calculate target pc for CALL_IMM #627

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

LucasSte
Copy link

@LucasSte LucasSte commented Nov 4, 2024

In SBPFv2, the CALL_IMM instruction only contains relative addresses in its immediate field, so we do not need to relocate it during loading.

Also, this PR addresses the comment https://github.com/solana-labs/rbpf/pull/620/files#r1822346064, properly evaluating the address in the verifier and during execution.

@LucasSte LucasSte marked this pull request as ready for review November 4, 2024 22:04
@LucasSte LucasSte requested a review from Lichtso November 4, 2024 22:04
@LucasSte LucasSte merged commit f3ff746 into solana-labs:main Nov 5, 2024
12 checks passed
@LucasSte LucasSte deleted the lazy-imm branch November 5, 2024 20:21
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.

2 participants