Added Windows PE support

This commit is contained in:
Eduard Urbach 2024-08-13 14:07:40 +02:00
parent 2e354befc3
commit 3dffa69f37
Signed by: eduard
GPG key ID: 49226B848C78F6C8
20 changed files with 373 additions and 103 deletions

View file

@ -14,24 +14,3 @@ type ProgramHeader struct {
SizeInMemory int64
Align int64
}
type ProgramType int32
const (
ProgramTypeNULL ProgramType = 0
ProgramTypeLOAD ProgramType = 1
ProgramTypeDYNAMIC ProgramType = 2
ProgramTypeINTERP ProgramType = 3
ProgramTypeNOTE ProgramType = 4
ProgramTypeSHLIB ProgramType = 5
ProgramTypePHDR ProgramType = 6
ProgramTypeTLS ProgramType = 7
)
type ProgramFlags int32
const (
ProgramFlagsExecutable ProgramFlags = 0x1
ProgramFlagsWritable ProgramFlags = 0x2
ProgramFlagsReadable ProgramFlags = 0x4
)