public ELFSection(ELFFile elfFile, Reader dataSourceReader, ulong elfOffset, ulong sectionHeaderOffset) { _elfFile = elfFile; _dataSourceReader = dataSourceReader; _header = new Lazy <ELFSectionHeader>(() => _dataSourceReader.Read <ELFSectionHeader>(sectionHeaderOffset)); _name = new Lazy <string>(ReadName); _contents = new Lazy <Reader>(() => _dataSourceReader.WithRelativeAddressSpace(elfOffset + Header.FileOffset, Header.FileSize)); }
public ELFCoreFile(IAddressSpace dataSource) { _elf = new ELFFile(dataSource); _fileTable = new Lazy <ELFFileTable>(ReadFileTable); _images = new Lazy <ELFLoadedImage[]>(ReadLoadedImages); }
public ELFLoadedImage(ELFFile image, ELFFileTableEntry entry) { Image = image; _entry = entry; }
public ELFLoadedImage(ELFFile image, ELFFileTableEntry entry) { Image = image; Path = entry.Path; _loadAddress = entry.LoadAddress; }