forked from qmonnet/rbpf
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elf: error out if sbpf_version.enable_elf_vaddr() and config.optimize…
…_rodata=false (#478) 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.
- Loading branch information
1 parent
d91f880
commit 6971ce9
Showing
4 changed files
with
45 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters