Feature gates for rbpf v0.2.16 (#21590)

- Adds feature reject_section_virtual_address_file_offset_mismatch.
- Adds feature start_verify_shift32_imm.
- Enables enable_symbol_and_section_labels only in the rbpf-cli.
This commit is contained in:
Alexander Meißner
2021-12-03 15:45:25 +01:00
committed by GitHub
parent a9d5ef2055
commit 015250f96c
5 changed files with 31 additions and 6 deletions

View File

@ -152,6 +152,7 @@ native machine code before execting it in the virtual machine.",
let config = Config {
enable_instruction_tracing: matches.is_present("trace") || matches.is_present("profile"),
enable_symbol_and_section_labels: true,
..Config::default()
};
let loader_id = bpf_loader::id();