mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: add support for GOARCH=mips{,le}
Only internal linking without cgo is supported for now. Change-Id: I772d2ba496a613c78bee7e93f29e9538e6407bdc Reviewed-on: https://go-review.googlesource.com/31481 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
f4c997578a
commit
76d8e60451
4 changed files with 376 additions and 1 deletions
|
|
@ -2199,7 +2199,7 @@ func Asmbelf(ctxt *Link, symo int64) {
|
|||
switch SysArch.Family {
|
||||
default:
|
||||
Exitf("unknown architecture in asmbelf: %v", SysArch.Family)
|
||||
case sys.MIPS64:
|
||||
case sys.MIPS, sys.MIPS64:
|
||||
eh.machine = EM_MIPS
|
||||
case sys.ARM:
|
||||
eh.machine = EM_ARM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue