Skip to content

Commit d4c0ed2

Browse files
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 1f9c9d8 commit d4c0ed2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/go1.17.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,15 @@ <h2 id="compiler">Compiler</h2>
488488
and compare functions by code pointer.
489489
</p>
490490

491+
<h3 id="link">Linker</h3>
492+
493+
<p><!-- CL 310349 -->
494+
When the linker uses external linking mode, which is the default
495+
when linking a program that uses cgo, and the linker is invoked
496+
with a <code>-I</code> option, the option will now be passed to the
497+
external linker as a <code>-Wl,--dynamic-linker</code> option.
498+
</p>
499+
491500
<h2 id="library">Core library</h2>
492501

493502
<h3 id="runtime/cgo"><a href="/pkg/runtime/cgo">Cgo</a></h3>

0 commit comments

Comments
 (0)