diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-08-12 13:30:43 -0400 |
---|---|---|
committer | Andrew Bonventre <andybons@golang.org> | 2020-08-13 00:42:22 +0000 |
commit | 46a34f93a20bd7e249bebde5c937765dd779bf4f (patch) | |
tree | 399d48dcee7c3835862eb512bf6ef494b5f00253 /doc | |
parent | 91de29ec8f069ceb6cd9e2007db6795ce1cc3506 (diff) | |
download | go-46a34f93a20bd7e249bebde5c937765dd779bf4f.tar.gz go-46a34f93a20bd7e249bebde5c937765dd779bf4f.zip |
[release-branch.go1.15] doc/go1.15: clarify external linking can still be used for building PIE
In Go 1.15 we switched the default linking mode for PIE on
Linux/AMD64 and Linux/ARM64 to internal linking. Clarify that
the previous behavior (external linking) can still be used with
a flag.
Updates #40719.
Change-Id: Ib7042622bc91e1b1aa31f520990d03b5eb6c56bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/248199
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 50f63a7ae4b7f951fa894b96633b1716adca55fa)
Reviewed-on: https://go-review.googlesource.com/c/go/+/248330
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.15.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/go1.15.html b/doc/go1.15.html index e7b7456059..c691bf3bd5 100644 --- a/doc/go1.15.html +++ b/doc/go1.15.html @@ -357,7 +357,10 @@ Do not send CLs removing the interior tags from such phrases. The linker now defaults to internal linking mode for <code>-buildmode=pie</code> on <code>linux/amd64</code> and <code>linux/arm64</code>, so these - configurations no longer require a C linker. + configurations no longer require a C linker. External linking + mode (which was the default in Go 1.14 for + <code>-buildmode=pie</code>) can still be requested with + <code>-ldflags=-linkmode=external</code> flag. </p> <h2 id="objdump">Objdump</h2> |