]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use gold when dynamic linking on arm64
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 18 Apr 2016 11:24:48 +0000 (07:24 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 18 Apr 2016 16:14:44 +0000 (16:14 +0000)
commita3c92c9db137413b17447a72c334c3e560bace06
treedbdcd85a517afc7067f0c0e763b204732924fa3e
parent0db2bf2313cdd7711c2215fab2ae234a0f591fe8
cmd/link: use gold when dynamic linking on arm64

The GNU linker follows the letter of -znocopyreloc by refusing to
generate COPY relocations on arm64. Unfortunately it generates an
error instead of finding another way. The gold linker works, so
switch to it.

Fixes linux/arm64 build.

Change-Id: I1f7119d999c8f9f1f2d0c1e06b6462cea9c02a71
Reviewed-on: https://go-review.googlesource.com/22185
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/testshared/shared_test.go
src/cmd/link/internal/ld/lib.go