Simplified executable file formats

This commit is contained in:
Eduard Urbach 2024-08-15 00:46:49 +02:00
parent 1cb93b39a7
commit 999e60e294
Signed by: eduard
GPG key ID: 49226B848C78F6C8
29 changed files with 236 additions and 218 deletions

View file

@ -1,16 +0,0 @@
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
}