-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |