Skip to content

Commit

Permalink
Cleanup - switch_to_new_elf_parser (#2057)
Browse files Browse the repository at this point in the history
Bumps solana_rbpf to v0.8.2 and removes switch_to_new_elf_parser.
  • Loading branch information
Lichtso authored Jul 9, 2024
1 parent e8750ba commit 8cb4e00
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 74 deletions.
36 changes: 2 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ solana-zk-keygen = { path = "zk-keygen", version = "=2.1.0" }
solana-zk-sdk = { path = "zk-sdk", version = "=2.1.0" }
solana-zk-token-proof-program = { path = "programs/zk-token-proof", version = "=2.1.0" }
solana-zk-token-sdk = { path = "zk-token-sdk", version = "=2.1.0" }
solana_rbpf = "=0.8.1"
solana_rbpf = "=0.8.2"
spl-associated-token-account = "=4.0.0"
spl-instruction-padding = "0.2"
spl-memo = "=5.0.0"
Expand Down
2 changes: 0 additions & 2 deletions programs/bpf_loader/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ use {
enable_partitioned_epoch_reward, enable_poseidon_syscall,
error_on_syscall_bpf_function_hash_collisions, get_sysvar_syscall_enabled,
last_restart_slot_sysvar, reject_callx_r10, remaining_compute_units_syscall_enabled,
switch_to_new_elf_parser,
},
hash::{Hash, Hasher},
instruction::{AccountMeta, InstructionError, ProcessedSiblingInstruction},
Expand Down Expand Up @@ -306,7 +305,6 @@ pub fn create_program_runtime_environment_v1<'a>(
enable_sbpf_v1: true,
enable_sbpf_v2: false,
optimize_rodata: false,
new_elf_parser: feature_set.is_active(&switch_to_new_elf_parser::id()),
aligned_memory_mapping: !feature_set.is_active(&bpf_account_data_direct_mapping::id()),
// Warning, do not use `Config::default()` so that configuration here is explicit.
};
Expand Down
1 change: 0 additions & 1 deletion programs/loader-v4/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ pub fn create_program_runtime_environment_v2<'a>(
enable_sbpf_v1: false,
enable_sbpf_v2: true,
optimize_rodata: true,
new_elf_parser: true,
aligned_memory_mapping: true,
// Warning, do not use `Config::default()` so that configuration here is explicit.
};
Expand Down
36 changes: 2 additions & 34 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion programs/sbf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ solana-transaction-status = { path = "../../transaction-status", version = "=2.1
solana-type-overrides = { path = "../../type-overrides", version = "=2.1.0" }
agave-validator = { path = "../../validator", version = "=2.1.0" }
solana-zk-token-sdk = { path = "../../zk-token-sdk", version = "=2.1.0" }
solana_rbpf = "=0.8.1"
solana_rbpf = "=0.8.2"
thiserror = "1.0"

[package]
Expand Down
1 change: 0 additions & 1 deletion svm/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ fn create_custom_environment<'a>() -> BuiltinProgram<InvokeContext<'a>> {
enable_sbpf_v1: true,
enable_sbpf_v2: false,
optimize_rodata: false,
new_elf_parser: false,
aligned_memory_mapping: true,
};

Expand Down

0 comments on commit 8cb4e00

Please sign in to comment.