Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants