Added Mach-O file format

This commit is contained in:
Eduard Urbach 2024-08-11 21:15:47 +02:00
parent 7c81c3451f
commit af259b364c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
10 changed files with 266 additions and 4 deletions

13
src/macho/Header.go Normal file
View file

@ -0,0 +1,13 @@
package macho
// Header contains general information.
type Header struct {
Magic uint32
Architecture CPU
MicroArchitecture uint32
Type HeaderType
NumCommands uint32
SizeCommands uint32
Flags HeaderFlags
Reserved uint32
}