Simplified executable file formats
This commit is contained in:
parent
1cb93b39a7
commit
999e60e294
29 changed files with 236 additions and 218 deletions
16
src/exe/elf/ProgramHeader.go
Normal file
16
src/exe/elf/ProgramHeader.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package elf
|
||||
|
||||
// ProgramHeaderSize is equal to the size of a program header in bytes.
|
||||
const ProgramHeaderSize = 56
|
||||
|
||||
// ProgramHeader points to the executable part of our program.
|
||||
type ProgramHeader struct {
|
||||
Type ProgramType
|
||||
Flags ProgramFlags
|
||||
Offset int64
|
||||
VirtualAddress int64
|
||||
PhysicalAddress int64
|
||||
SizeInFile int64
|
||||
SizeInMemory int64
|
||||
Align int64
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue