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