]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: linker passes -I to extld as -Wl,--dynamic-linker
authorIan Lance Taylor <iant@golang.org>
Wed, 11 Aug 2021 16:10:55 +0000 (09:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 Aug 2021 16:51:24 +0000 (16:51 +0000)
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>

doc/go1.17.html

index d469f400ad940886617b399d3625e413fe7d5437..972f9c35594b7ff524fb939845722c74c996be9b 100644 (file)
@@ -488,6 +488,15 @@ func Foo() bool {
   and compare functions by code pointer.
 </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>
 
 <h3 id="runtime/cgo"><a href="/pkg/runtime/cgo">Cgo</a></h3>