Skip to content

Commit

Permalink
Start reading ecoff files.
Browse files Browse the repository at this point in the history
  • Loading branch information
trhodeos committed Feb 26, 2018
1 parent 8f94d54 commit bc04b1f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ecoff.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package spicy

type FileHeader struct {
Magic uint16
NumberSections uint16
TimeDate int32
SymbolsPointer int32
NumberSymbols int32
OptionalHeader uint16
Flags uint16
}

type AoutHeader struct {
Magic int16
Vstamp int16
TextSize int32
DataSize int32
BssSize int32
Entry int32
TextStart int32
DataStart int32
BssStart int32
GprMask int32
CprMask [4]int32
GpValue int32
}

type SectionHeader struct {
Name [8]uint8
PhysicalAddress int32
VirtualAddress int32
Size int32
SectionPointer int32
RelocationsPointer int32
LnnoPtr int32
NumRelocations uint16
NumLnno uint16
Flags int32
}

0 comments on commit bc04b1f

Please sign in to comment.