Added Mach-O file format

This commit is contained in:
2024-08-11 21:15:47 +02:00
parent cc215a27c7
commit 58f010b81a
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
}