IHex#

class cle.backends.ihex.Hex[source]#

Bases: Backend

A loader for Intel Hex Objects See https://en.wikipedia.org/wiki/Intel_HEX

is_default = True#
static parse_record(line)[source]#
static coalesce_regions(regions)[source]#
__init__(*args, ignore_missing_arch: bool = False, **kwargs)[source]#
Parameters:
  • binary – The path to the binary to load

  • binary_stream – The open stream to this binary. The reference to this will be held until you call close.

  • is_main_bin – Whether this binary should be loaded as the main executable

  • ignore_missing_arch (bool) –

imports: typing.Dict[str, 'Relocation']#
relocs: List[Relocation]#
child_objects: List['Backend']#
exception_handlings: List[ExceptionHandling]#
function_hints: List[FunctionHint]#
memory: Clemory#
cached_content: Optional[bytes]#
static is_compatible(stream)[source]#

Determine quickly whether this backend can load an object from this stream