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

elf: error out if sbpf_version.enable_elf_vaddr() and config.optimize_rodata=false #478

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

alessandrod
Copy link

Enabling virtual addresses requires optimize_rodata=true. Otherwise with optimize_rodata=false we allocate a vec where we join all the readonly sections, and if we allowed virtual addresses then we'd potentially have to allocate huge amounts of memory.

…_rodata=false

Enabling virtual addresses requires optimize_rodata=true. Otherwise with
optimize_rodata=false we allocate a vec where we join all the readonly
sections, and if we allowed virtual addresses then we'd potentially have
to allocate huge amounts of memory.
@codecov-commenter
Copy link

Codecov Report

Merging #478 (d6e4a2e) into main (d91f880) will increase coverage by 0.09%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main     #478      +/-   ##
==========================================
+ Coverage   89.84%   89.93%   +0.09%     
==========================================
  Files          23       23              
  Lines       10192    10204      +12     
==========================================
+ Hits         9157     9177      +20     
+ Misses       1035     1027       -8     
Impacted Files Coverage Δ
src/elf.rs 89.82% <87.50%> (+0.56%) ⬆️

@Lichtso Lichtso merged commit 6971ce9 into solana-labs:main Jun 30, 2023
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.

3 participants