pub fn analyze_and_load_elf_with_strategy(
file_obj: &dyn FileObject,
task: &Task,
strategy: &LoadStrategy,
) -> Result<LoadElfResult, ElfLoaderError>Expand description
Analyze ELF file and load it with custom loading strategy
This function determines whether the ELF file requires dynamic linking by checking for PT_INTERP segment, then loads either the interpreter (dynamic linker) or the main program directly (static linking) using the provided strategy.
§Arguments
file_obj: A reference to the file object containing the ELF datatask: A mutable reference to the task into which the ELF file will be loadedstrategy: Loading strategy provided by ABI module
§Returns
Result<LoadElfResult, ElfLoaderError>: Information about the loaded ELF including execution mode, entry point, and auxiliary vector data