riscemu.priv.ElfLoader module
- class riscemu.priv.ElfLoader.ElfBinaryFileLoader(source_path: str, options: Dict[str, Any])
Bases:
ProgramLoader
Loads compiled elf binaries (checks for the magic sequence 7f45 4c46)
This loader respects local and global symbols.
- __init__(source_path: str, options: Dict[str, Any])
- classmethod can_parse(source_path: str) float
Return confidence that the file located at source_path should be parsed and loaded by this loader :param source_path: the path of the source file :return: the confidence that this file belongs to this parser
- classmethod get_options(argv: List[str]) [List[str], Dict[str, Any]]
parse command line args into an options dictionary
- Parameters:
argv – the command line args list
- Returns:
all remaining command line args and the parser options object