cmd/link: add external linking support for GOARCH=mips{,le}

Fixes #17792.

Change-Id: If4f24455eec0edb3b221aef6777a681f6c768866
Reviewed-on: https://go-review.googlesource.com/34313
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Vladimir Stefanovic 2016-12-13 21:23:39 +01:00 committed by Ian Lance Taylor
parent 96414ca39f
commit a3b670e333
4 changed files with 96 additions and 17 deletions

View file

@ -1257,6 +1257,8 @@ func hostlinkArchArgs() []string {
// nothing needed
case sys.MIPS64:
return []string{"-mabi=64"}
case sys.MIPS:
return []string{"-mabi=32"}
}
return nil
}