|
|
|
@ -39,10 +39,11 @@
|
|
|
|
|
//! // Relocate the programs
|
|
|
|
|
//! #[cfg(feature = "std")]
|
|
|
|
|
//! let text_sections = std::collections::HashSet::new();
|
|
|
|
|
//! let deactivate_maps = std::collections::HashMap::new();
|
|
|
|
|
//! #[cfg(not(feature = "std"))]
|
|
|
|
|
//! let text_sections = hashbrown::HashSet::new();
|
|
|
|
|
//! object.relocate_calls(&text_sections).unwrap();
|
|
|
|
|
//! object.relocate_maps(std::iter::empty(), &text_sections).unwrap();
|
|
|
|
|
//! object.relocate_maps(std::iter::empty(), &text_sections, &deactivate_maps).unwrap();
|
|
|
|
|
//!
|
|
|
|
|
//! // Run with rbpf
|
|
|
|
|
//! let function = object.functions.get(&object.programs["prog_name"].function_key()).unwrap();
|
|
|
|
|