func main() { switch obj.GOARCH { default: fmt.Fprintf(os.Stderr, "link: unknown architecture %q\n", obj.GOARCH) os.Exit(2) case "386": x86.Init() case "amd64", "amd64p32": amd64.Init() case "arm": arm.Init() case "arm64": arm64.Init() case "mips64", "mips64le": mips64.Init() case "ppc64", "ppc64le": ppc64.Init() case "s390x": s390x.Init() } ld.Main() }
func Main() { linkarchinit() ld.Main() }