]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: mention linker improvements
authorJosh Bleecher Snyder <josh@tailscale.com>
Mon, 7 Feb 2022 23:23:22 +0000 (15:23 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 7 Feb 2022 23:45:09 +0000 (23:45 +0000)
Change-Id: I12cad608448ddd17a5da2b1d1209007102d892a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/383914
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 7e11f73820bd8b2417ac246253d4c55fe5388dda..ed32a93bc32732dad218d234171478bf3c979526 100644 (file)
@@ -493,6 +493,14 @@ Do not send CLs removing the interior tags from such phrases.
 
 <h2 id="linker">Linker</h2>
 
+<p>
+  The linker emits <a href="https://tailscale.com/blog/go-linker/">far fewer relocations</a>.
+  As a result, most codebases will link faster, require less memory to link,
+  and generate smaller binaries.
+  Tools that process Go binaries should use Go 1.18's <code>debug/gosym</code> package
+  to transparently handle both old and new binaries.
+</p>
+
 <p><!-- CL 298610 -->
   The new linker <code>-asan</code> option supports the
   new <code>go</code> command <code>-asan</code> option.