src/pkg/debug/pe/pe.go - The Go Programming Language

Golang

Source file src/pkg/debug/pe/pe.go

     1	// Copyright 2009 The Go Authors.  All rights reserved.
     2	// Use of this source code is governed by a BSD-style
     3	// license that can be found in the LICENSE file.
     4	
     5	package pe
     6	
     7	type FileHeader struct {
     8		Machine              uint16
     9		NumberOfSections     uint16
    10		TimeDateStamp        uint32
    11		PointerToSymbolTable uint32
    12		NumberOfSymbols      uint32
    13		SizeOfOptionalHeader uint16
    14		Characteristics      uint16
    15	}
    16	
    17	type SectionHeader32 struct {
    18		Name                 [8]uint8
    19		VirtualSize          uint32
    20		VirtualAddress       uint32
    21		SizeOfRawData        uint32
    22		PointerToRawData     uint32
    23		PointerToRelocations uint32
    24		PointerToLineNumbers uint32
    25		NumberOfRelocations  uint16
    26		NumberOfLineNumbers  uint16
    27		Characteristics      uint32
    28	}
    29	
    30	const (
    31		IMAGE_FILE_MACHINE_UNKNOWN   = 0x0
    32		IMAGE_FILE_MACHINE_AM33      = 0x1d3
    33		IMAGE_FILE_MACHINE_AMD64     = 0x8664
    34		IMAGE_FILE_MACHINE_ARM       = 0x1c0
    35		IMAGE_FILE_MACHINE_EBC       = 0xebc
    36		IMAGE_FILE_MACHINE_I386      = 0x14c
    37		IMAGE_FILE_MACHINE_IA64      = 0x200
    38		IMAGE_FILE_MACHINE_M32R      = 0x9041
    39		IMAGE_FILE_MACHINE_MIPS16    = 0x266
    40		IMAGE_FILE_MACHINE_MIPSFPU   = 0x366
    41		IMAGE_FILE_MACHINE_MIPSFPU16 = 0x466
    42		IMAGE_FILE_MACHINE_POWERPC   = 0x1f0
    43		IMAGE_FILE_MACHINE_POWERPCFP = 0x1f1
    44		IMAGE_FILE_MACHINE_R4000     = 0x166
    45		IMAGE_FILE_MACHINE_SH3       = 0x1a2
    46		IMAGE_FILE_MACHINE_SH3DSP    = 0x1a3
    47		IMAGE_FILE_MACHINE_SH4       = 0x1a6
    48		IMAGE_FILE_MACHINE_SH5       = 0x1a8
    49		IMAGE_FILE_MACHINE_THUMB     = 0x1c2
    50		IMAGE_FILE_MACHINE_WCEMIPSV2 = 0x169
    51	)