Skip to content

Commit b2c7be3

Browse files
committed
Add support for ARM64 architecture in FileInfo
struct and machoFile
1 parent 1ce21cf commit b2c7be3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

file.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ type FileInfo struct {
391391
const (
392392
ArchAMD64 = "amd64"
393393
ArchARM = "arm"
394+
ArchARM64 = "arm64"
394395
Arch386 = "i386"
395396
ArchMIPS = "mips"
396397
)

macho.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ func (m *machoFile) getFileInfo() *FileInfo {
113113
case macho.CpuAmd64:
114114
fi.WordSize = intSize64
115115
fi.Arch = ArchAMD64
116+
case macho.CpuArm64:
117+
fi.WordSize = intSize64
118+
fi.Arch = ArchARM64
116119
default:
117120
panic("Unsupported architecture")
118121
}

0 commit comments

Comments
 (0)