]> Cypherpunks repositories - gostls13.git/commit
cmd/link: pass provided ldflags when testing whether an ldflag is supported
authorPeter Collingbourne <pcc@google.com>
Tue, 21 Aug 2018 01:42:02 +0000 (18:42 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Aug 2018 03:53:55 +0000 (03:53 +0000)
commit6417e91962f40ce929a279ac46d958d627c357da
tree0cb63703241d9be6bc60bddde5731a09e39b186a
parent247b034ac04b753d5e3ca7d0d8a172f63db5dcb4
cmd/link: pass provided ldflags when testing whether an ldflag is supported

It's possible for one of the ldflags to cause the compiler driver to
use a different linker than the default, so we need to make sure that
the flag is supported by whichever linker is specified.

Fixes #27110.

Change-Id: Ic0c51b886e34344d324e68cbf6673b168c14992f
Reviewed-on: https://go-review.googlesource.com/130316
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/lib.go