• Load executable ranges, named symbols, and DWARF line locations from an ELF image. Both ELF32 and ELF64, little or big endian, are accepted. A ROM image skips the line table. A missing or corrupt line table leaves LoadedElf.lines empty and does not fail the load.

    Parameters

    • name: string

      Name reported in events.

    • data: ArrayBuffer | Uint8Array

      ELF bytes.

    • rom: boolean = false

      True when this is the ROM ELF. Addresses that hit it and have no symbol are labeled ROM.

    Returns Promise<LoadedElf>

    Ranges, symbols, line intervals, and the file digest.