1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:54:39 -07:00

don't support 32-bit Mach-O anymore

This commit is contained in:
Jes Cok 2023-08-29 06:10:03 +08:00
parent 3a26ffc429
commit 24916e86d0

View File

@ -37,12 +37,8 @@ func RelocName(arch *sys.Arch, r objabi.RelocType) string {
switch arch.Family { switch arch.Family {
case sys.AMD64: case sys.AMD64:
return macho.RelocTypeX86_64(nr).String() return macho.RelocTypeX86_64(nr).String()
case sys.ARM:
return macho.RelocTypeARM(nr).String()
case sys.ARM64: case sys.ARM64:
return macho.RelocTypeARM64(nr).String() return macho.RelocTypeARM64(nr).String()
case sys.I386:
return macho.RelocTypeGeneric(nr).String()
default: default:
panic("unreachable") panic("unreachable")
} }