]> Cypherpunks repositories - gostls13.git/commit
cmd/go: extend the linker -o workaround for plugins to all platforms
authorCherry Mui <cherryyz@google.com>
Tue, 21 Mar 2023 20:27:14 +0000 (16:27 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 21 Mar 2023 20:57:28 +0000 (20:57 +0000)
commit3aa7ada60791f8c6c3cb6abd04d446bbc90efdab
treebfb67e128de5b42b75cd92170dd1beca98c3ba2a
parenteedd97d5fd9d7b773dc7b1b8d7e00e137da091bb
cmd/go: extend the linker -o workaround for plugins to all platforms

On Linux, for a shared object, at least with the Gold linker, the
output file path is recorded in the .gnu.version_d section. When
the output file path is in a temporary directory, it causes
nondeterministic build.

This is similar to #58557, but for Linux with the Gold linker.
Apply the same workaround as in CL 477296.

Should fix the linux-arm64-longtest builder.

Change-Id: Ic703bff32c1bcc40054b89be696e04280855e876
Reviewed-on: https://go-review.googlesource.com/c/go/+/478196
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/work/gc.go