aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-08-11 09:10:55 -0700
committerIan Lance Taylor <iant@golang.org>2021-08-11 16:51:24 +0000
commitd4c0ed26ace91cb21fc0a67f088648674052aa3d (patch)
treefed207f7fbf99c11f7f4d5891fa8284fc6add303
parent1f9c9d853067635305f72e247c5b49e3fa5da8af (diff)
downloadgo-d4c0ed26ace91cb21fc0a67f088648674052aa3d.tar.gz
go-d4c0ed26ace91cb21fc0a67f088648674052aa3d.zip
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>
-rw-r--r--doc/go1.17.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/go1.17.html b/doc/go1.17.html
index d469f400ad..972f9c3559 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -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>