- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for readRelocs (0.15 sec)
-
src/debug/pe/section.go
// Reloc represents a PE COFF relocation. // Each section contains its own relocation list. type Reloc struct { VirtualAddress uint32 SymbolTableIndex uint32 Type uint16 } func readRelocs(sh *SectionHeader, r io.ReadSeeker) ([]Reloc, error) { if sh.NumberOfRelocations <= 0 { return nil, nil } _, err := r.Seek(int64(sh.PointerToRelocations), io.SeekStart) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.5K bytes - Viewed (0) -
src/debug/pe/file.go
s.sr = io.NewSectionReader(r2, int64(s.SectionHeader.Offset), int64(s.SectionHeader.Size)) s.ReaderAt = s.sr f.Sections[i] = s } for i := range f.Sections { var err error f.Sections[i].Relocs, err = readRelocs(&f.Sections[i].SectionHeader, sr) if err != nil { return nil, err } } return f, nil } type nobitsSectionReader struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.2K bytes - Viewed (0)