mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link/internal/ld: add s390x support
Introduces the new relocation variant RV_390_DBL which indicates that the relocation value should be shifted right by 1 (to make it 2-byte aligned). Change-Id: I03fa96b4759ee19330c5298c3720746622fb1a03 Reviewed-on: https://go-review.googlesource.com/20878 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
29267c2131
commit
163ff700b8
8 changed files with 170 additions and 28 deletions
|
|
@ -339,7 +339,7 @@ func (mode *BuildMode) Set(s string) error {
|
|||
switch goos {
|
||||
case "linux":
|
||||
switch goarch {
|
||||
case "386", "amd64", "arm", "arm64", "ppc64le":
|
||||
case "386", "amd64", "arm", "arm64", "ppc64le", "s390x":
|
||||
default:
|
||||
return badmode()
|
||||
}
|
||||
|
|
@ -1242,7 +1242,7 @@ func hostlinkArchArgs() []string {
|
|||
switch Thearch.Thechar {
|
||||
case '8':
|
||||
return []string{"-m32"}
|
||||
case '6', '9':
|
||||
case '6', '9', 'z':
|
||||
return []string{"-m64"}
|
||||
case '5':
|
||||
return []string{"-marm"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue