1
0
mirror of https://github.com/golang/go synced 2024-11-14 08:40:27 -07:00
go/src/cmd/link
Ian Lance Taylor 93b753f525 cmd/link: fix handling of cgo_dynamic_interpreter
CL 27473 accidentally changed `!Debug['I']` to `*flagInterpreter != ""`.
Since the old `Debug['I']` was set when the new *flagInterpreter was
set, this inverted the sense of the condition. The effect was to always
ignore the cgo_dynamic_interpreter setting from runtime/cgo. This worked
OK when the default interpreter was the correct one, but failed when it
was not, as is currently the case on, at least, PPC64 and ARM.

This CL restores the old behavior by using a separate variable to track
whether the -I flag was used, just as we used to.

Change-Id: Icf9b65fa41349ed2e4de477fec0a557ef1eb8189
Reviewed-on: https://go-review.googlesource.com/27562
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-08-23 05:08:46 +00:00
..
internal cmd/link: fix handling of cgo_dynamic_interpreter 2016-08-23 05:08:46 +00:00
doc.go cmd/link: add -extar option to set ar program for c-archive 2016-01-26 18:52:36 +00:00
link_test.go cmd/link: handle long symbol names 2016-04-13 20:31:43 +00:00
main.go cmd/link: add s390x to link tool main function 2016-04-08 16:00:41 +00:00