Browse Source

golang ppc64 patch 1.16

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 3 years ago
parent
commit
0b7d6aabaf
  1. 47
      SOURCES/golang-1.16-ppc64-linker.patch
  2. 2
      SPECS/golang.spec

47
SOURCES/golang-1.16-ppc64-linker.patch

@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
--- src/cmd/link/internal/ld/config.go 2021-06-26 16:34:26.490000000 +0200
+++ src/cmd/link/internal/ld/config.go 2021-06-26 16:36:24.810000000 +0200
@@ -75,7 +75,7 @@
*mode = BuildModeCArchive
case "c-shared":
switch objabi.GOARCH {
- case "386", "amd64", "arm", "arm64", "ppc64le", "s390x":
+ case "386", "amd64", "arm", "arm64", "ppc64le", "ppc64", "s390x":
default:
return badmode()
}
@@ -84,7 +84,7 @@
switch objabi.GOOS {
case "linux":
switch objabi.GOARCH {
- case "386", "amd64", "arm", "arm64", "ppc64le", "s390x":
+ case "386", "amd64", "arm", "arm64", "ppc64le", "ppc64", "s390x":
default:
return badmode()
}
@@ -96,7 +96,7 @@
switch objabi.GOOS {
case "linux":
switch objabi.GOARCH {
- case "386", "amd64", "arm", "arm64", "s390x", "ppc64le":
+ case "386", "amd64", "arm", "arm64", "s390x", "ppc64le", "ppc64":
default:
return badmode()
}
@@ -108,7 +108,7 @@
}
case "freebsd":
switch objabi.GOARCH {
- case "amd64":
+ case "amd64", "ppc64le":
default:
return badmode()
}
@@ -197,7 +197,7 @@
// Internally linking cgo is incomplete on some architectures.
// https://golang.org/issue/14449
// https://golang.org/issue/21961
- if iscgo && ctxt.Arch.InFamily(sys.MIPS64, sys.MIPS, sys.PPC64, sys.RISCV64) {
+ if iscgo && ctxt.Arch.InFamily(sys.MIPS64, sys.MIPS, sys.RISCV64) {
return true, objabi.GOARCH + " does not support internal cgo"
}
if iscgo && objabi.GOOS == "android" {

2
SPECS/golang.spec

@ -227,7 +227,7 @@ Requires: go-srpm-macros @@ -227,7 +227,7 @@ Requires: go-srpm-macros

Patch1: 0001-Don-t-use-the-bundled-tzdata-at-runtime-except-for-t.patch
Patch2: 0002-syscall-expose-IfInfomsg.X__ifi_pad-on-s390x.patch
Patch3: golang-1.15-ppc64-linker.patch
Patch3: golang-1.16-ppc64-linker.patch

# Having documentation separate was broken
Obsoletes: %{name}-docs < 1.1-4

Loading…
Cancel
Save