mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
doc/go1.17: linker passes -I to extld as -Wl,--dynamic-linker
For #22446 Change-Id: I71a30761a28e81c50b7089d5a28be99c736c2dc8 Reviewed-on: https://go-review.googlesource.com/c/go/+/341332 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
1f9c9d8530
commit
d4c0ed26ac
|
@ -488,6 +488,15 @@ func Foo() bool {
|
||||||
and compare functions by code pointer.
|
and compare functions by code pointer.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<h3 id="link">Linker</h3>
|
||||||
|
|
||||||
|
<p><!-- CL 310349 -->
|
||||||
|
When the linker uses external linking mode, which is the default
|
||||||
|
when linking a program that uses cgo, and the linker is invoked
|
||||||
|
with a <code>-I</code> option, the option will now be passed to the
|
||||||
|
external linker as a <code>-Wl,--dynamic-linker</code> option.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h2 id="library">Core library</h2>
|
<h2 id="library">Core library</h2>
|
||||||
|
|
||||||
<h3 id="runtime/cgo"><a href="/pkg/runtime/cgo">Cgo</a></h3>
|
<h3 id="runtime/cgo"><a href="/pkg/runtime/cgo">Cgo</a></h3>
|
||||||
|
|
Loading…
Reference in a new issue