Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public ELFCoreFile(IAddressSpace dataSource)
 {
     _elf       = new ELFFile(dataSource);
     _fileTable = new Lazy <ELFFileTable>(ReadFileTable);
     _images    = new Lazy <ELFLoadedImage[]>(ReadLoadedImages);
 }
Exemplo n.º 3
0
 public ELFLoadedImage(ELFFile image, ELFFileTableEntry entry)
 {
     Image  = image;
     _entry = entry;
 }
Exemplo n.º 4
0
 public ELFLoadedImage(ELFFile image, ELFFileTableEntry entry)
 {
     Image        = image;
     Path         = entry.Path;
     _loadAddress = entry.LoadAddress;
 }