type FileHeader32 struct {
Fmagic uint16 // Target machine
Fnscns uint16 // Number of sections
- Ftimedat int32 // Time and date of file creation
+ Ftimedat uint32 // Time and date of file creation
Fsymptr uint32 // Byte offset to symbol table start
- Fnsyms int32 // Number of entries in symbol table
+ Fnsyms uint32 // Number of entries in symbol table
Fopthdr uint16 // Number of bytes in optional header
Fflags uint16 // Flags
}
type FileHeader64 struct {
Fmagic uint16 // Target machine
Fnscns uint16 // Number of sections
- Ftimedat int32 // Time and date of file creation
+ Ftimedat uint32 // Time and date of file creation
Fsymptr uint64 // Byte offset to symbol table start
Fopthdr uint16 // Number of bytes in optional header
Fflags uint16 // Flags
- Fnsyms int32 // Number of entries in symbol table
+ Fnsyms uint32 // Number of entries in symbol table
}
const (
type SymEnt32 struct {
Nname [8]byte // Symbol name
Nvalue uint32 // Symbol value
- Nscnum int16 // Section number of symbol
+ Nscnum uint16 // Section number of symbol
Ntype uint16 // Basic and derived type specification
- Nsclass int8 // Storage class of symbol
- Nnumaux int8 // Number of auxiliary entries
+ Nsclass uint8 // Storage class of symbol
+ Nnumaux uint8 // Number of auxiliary entries
}
type SymEnt64 struct {
Nvalue uint64 // Symbol value
Noffset uint32 // Offset of the name in string table or .debug section
- Nscnum int16 // Section number of symbol
+ Nscnum uint16 // Section number of symbol
Ntype uint16 // Basic and derived type specification
- Nsclass int8 // Storage class of symbol
- Nnumaux int8 // Number of auxiliary entries
+ Nsclass uint8 // Storage class of symbol
+ Nnumaux uint8 // Number of auxiliary entries
}
const SYMESZ = 18
// csect Auxiliary Entry.
type AuxCSect32 struct {
- Xscnlen int32 // Length or symbol table index
+ Xscnlen uint32 // Length or symbol table index
Xparmhash uint32 // Offset of parameter type-check string
Xsnhash uint16 // .typchk section number
Xsmtyp uint8 // Symbol alignment and type
Xsnhash uint16 // .typchk section number
Xsmtyp uint8 // Symbol alignment and type
Xsmclas uint8 // Storage-mapping class
- Xscnlenhi int32 // Upper 4 bytes of length or symbol table index
+ Xscnlenhi uint32 // Upper 4 bytes of length or symbol table index
Xpad uint8 // Unused
Xauxtype uint8 // Type of auxiliary entry
}
// Loader Header.
type LoaderHeader32 struct {
- Lversion int32 // Loader section version number
- Lnsyms int32 // Number of symbol table entries
- Lnreloc int32 // Number of relocation table entries
+ Lversion uint32 // Loader section version number
+ Lnsyms uint32 // Number of symbol table entries
+ Lnreloc uint32 // Number of relocation table entries
Listlen uint32 // Length of import file ID string table
- Lnimpid int32 // Number of import file IDs
+ Lnimpid uint32 // Number of import file IDs
Limpoff uint32 // Offset to start of import file IDs
Lstlen uint32 // Length of string table
Lstoff uint32 // Offset to start of string table
}
type LoaderHeader64 struct {
- Lversion int32 // Loader section version number
- Lnsyms int32 // Number of symbol table entries
- Lnreloc int32 // Number of relocation table entries
+ Lversion uint32 // Loader section version number
+ Lnsyms uint32 // Number of symbol table entries
+ Lnreloc uint32 // Number of relocation table entries
Listlen uint32 // Length of import file ID string table
- Lnimpid int32 // Number of import file IDs
+ Lnimpid uint32 // Number of import file IDs
Lstlen uint32 // Length of string table
Limpoff uint64 // Offset to start of import file IDs
Lstoff uint64 // Offset to start of string table
type LoaderSymbol32 struct {
Lname [8]byte // Symbol name or byte offset into string table
Lvalue uint32 // Address field
- Lscnum int16 // Section number containing symbol
- Lsmtype int8 // Symbol type, export, import flags
- Lsmclas int8 // Symbol storage class
- Lifile int32 // Import file ID; ordinal of import file IDs
+ Lscnum uint16 // Section number containing symbol
+ Lsmtype uint8 // Symbol type, export, import flags
+ Lsmclas uint8 // Symbol storage class
+ Lifile uint32 // Import file ID; ordinal of import file IDs
Lparm uint32 // Parameter type-check field
}
type LoaderSymbol64 struct {
Lvalue uint64 // Address field
Loffset uint32 // Byte offset into string table of symbol name
- Lscnum int16 // Section number containing symbol
- Lsmtype int8 // Symbol type, export, import flags
- Lsmclas int8 // Symbol storage class
- Lifile int32 // Import file ID; ordinal of import file IDs
+ Lscnum uint16 // Section number containing symbol
+ Lsmtype uint8 // Symbol type, export, import flags
+ Lsmclas uint8 // Symbol storage class
+ Lifile uint32 // Import file ID; ordinal of import file IDs
Lparm uint32 // Parameter type-check field
}