3fe4f3f05f
Update bundled dependencies. Update pcre-devel to pcre2-devel Add go-filesystem Remove skipping tests, related: https://github.com/golang/go/issues/39466 Remove 0002-syscall-expose-IfInfomsg.X__ifi_pad-on-s390x.patch, already merged Rename 0003-cmd-go-disable-Google-s-proxy-and-sumdb.patch to 0001-Disable-Google-s-proxy-sumdb-and-toolchain.patch Update 0001-Disable-Google-s-proxy-sumdb-and-toolchain.patch Update 0004-cmd-link-use-gold-on-ARM-ARM64-only-if-gold-is-avail.patch Resolves: rhbz#2128303 Resolves: rhbz#2215635 Resolves: rhbz#2172392
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
From 7506da0af38aa307f45664f0c787b5767cc7a87f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= <asm@redhat.com>
|
|
Date: Thu, 22 Jun 2023 17:19:00 +0200
|
|
Subject: [PATCH] Force gold in aarch64 until binutils 2.41 is on Fedora
|
|
|
|
---
|
|
src/cmd/link/internal/ld/lib.go | 8 +++-----
|
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
|
|
index 91e2d5149c..99c305530b 100644
|
|
--- a/src/cmd/link/internal/ld/lib.go
|
|
+++ b/src/cmd/link/internal/ld/lib.go
|
|
@@ -1605,15 +1605,13 @@ func (ctxt *Link) hostlink() {
|
|
// https://go.dev/issue/22040
|
|
altLinker = "gold"
|
|
|
|
- // If gold is not installed, gcc will silently switch
|
|
- // back to ld.bfd. So we parse the version information
|
|
- // and provide a useful error if gold is missing.
|
|
+ // In both cases, switch to gold if gold is available.
|
|
name, args := flagExtld[0], flagExtld[1:]
|
|
args = append(args, "-fuse-ld=gold", "-Wl,--version")
|
|
cmd := exec.Command(name, args...)
|
|
if out, err := cmd.CombinedOutput(); err == nil {
|
|
- if !bytes.Contains(out, []byte("GNU gold")) {
|
|
- log.Fatalf("ARM64 external linker must be gold (issue #15696, 22040), but is not: %s", out)
|
|
+ if bytes.Contains(out, []byte("GNU gold")) {
|
|
+ altLinker = "gold"
|
|
}
|
|
}
|
|
}
|
|
--
|
|
2.40.1
|
|
|