Skip to content

Commit

Permalink
Merge pull request #72 from derekparker/macho/arm64
Browse files Browse the repository at this point in the history
Add support for MachO/ARM64
  • Loading branch information
TcM1911 authored Nov 17, 2023
2 parents 1ce21cf + b2c7be3 commit 7856820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions file.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ type FileInfo struct {
const (
ArchAMD64 = "amd64"
ArchARM = "arm"
ArchARM64 = "arm64"
Arch386 = "i386"
ArchMIPS = "mips"
)
3 changes: 3 additions & 0 deletions macho.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ func (m *machoFile) getFileInfo() *FileInfo {
case macho.CpuAmd64:
fi.WordSize = intSize64
fi.Arch = ArchAMD64
case macho.CpuArm64:
fi.WordSize = intSize64
fi.Arch = ArchARM64
default:
panic("Unsupported architecture")
}
Expand Down

0 comments on commit 7856820

Please sign in to comment.