Go to file
Amit Shah c874af597b Fix build without the gold linker
The Go runtime silently chose the gold linker on arm and aarch64 build
targets to work around a binutils bug.

That bug was from 2016, and has been fixed in binutils for a while.  But
the Go workaround was still in place.

The workaround to choose gold was supposed to error out during the
configure phase if gold wasn't found - but that doesn't happen.

This leads to builds on aarch64 failing if attempting to compile without
gold.

Just removing the special condition in the Go source code:

https://go-review.googlesource.com/c/go/+/391115/

works, but that patch is unlikely to be merged upstream.

A patch fixing the build is more likely to be merged:

https://go-review.googlesource.com/c/go/+/366279/

which updates the linker selection to use gold only if available.

References to this bug in upstream Go and Binutils:

https://github.com/golang/go/issues/22040
https://sourceware.org/bugzilla/show_bug.cgi?id=19962

Including the likely-to-be-merged patch here.
2022-11-08 23:27:48 +00:00
.fmf Introduce CI gating 2021-01-18 00:32:44 +01:00
plans Introduce CI gating 2021-01-18 00:32:44 +01:00
tests/Sanity/basic-smoke Introduce CI gating 2021-01-18 00:32:44 +01:00
.gitignore Update to go1.19.3 2022-11-06 19:25:07 -05:00
0002-syscall-expose-IfInfomsg.X__ifi_pad-on-s390x.patch Update to go1.16beta1 2021-01-16 08:52:57 +01:00
0003-cmd-go-disable-Google-s-proxy-and-sumdb.patch Update to go1.17rc2 2021-08-09 19:44:16 +02:00
0004-cmd-link-use-gold-on-ARM-ARM64-only-if-gold-is-avail.patch Fix build without the gold linker 2022-11-08 23:27:48 +00:00
bundled-deps.sh Reabse to go1.16 2021-02-18 11:09:21 +01:00
fedora.go make possible to override default traceback level at build time 2017-01-31 15:11:25 +01:00
gating.yaml Introduce CI gating 2021-01-18 00:32:44 +01:00
golang-gdbinit gdb runtime path fix 2015-08-27 14:13:04 -04:00
golang.spec Fix build without the gold linker 2022-11-08 23:27:48 +00:00
sources Update to go1.19.3 2022-11-06 19:25:07 -05:00