go/src/debug/pe/section.go

type SectionHeader32

// fullName finds real name of section sh. Normally name is stored
// in sh.Name, but if it is longer then 8 characters, it is stored
// in COFF string table st instead.
func (sh *SectionHeader32) fullName(st StringTable) (string, error) {}

type Reloc

func readRelocs(sh *SectionHeader, r io.ReadSeeker) ([]Reloc, error) {}

type SectionHeader

type Section

// Data reads and returns the contents of the PE section s.
//
// If s.Offset is 0, the section has no contents,
// and Data will always return a non-nil error.
func (s *Section) Data() ([]byte, error) {}

// Open returns a new ReadSeeker reading the PE section s.
//
// If s.Offset is 0, the section has no contents, and all calls
// to the returned reader will return a non-nil error.
func (s *Section) Open() io.ReadSeeker {}

const IMAGE_SCN_CNT_CODE

const IMAGE_SCN_CNT_INITIALIZED_DATA

const IMAGE_SCN_CNT_UNINITIALIZED_DATA

const IMAGE_SCN_LNK_COMDAT

const IMAGE_SCN_MEM_DISCARDABLE

const IMAGE_SCN_MEM_EXECUTE

const IMAGE_SCN_MEM_READ

const IMAGE_SCN_MEM_WRITE