From: David Crawshaw Date: Wed, 12 Oct 2016 16:45:16 +0000 (-0400) Subject: cmd/link: force external linking for plugins X-Git-Tag: go1.8beta1~904 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=413afcafbfd45b6b58023a49484d8480143960e0;p=gostls13.git cmd/link: force external linking for plugins Fixes #17415 Change-Id: I6f896d549092e5e0dba72351e5385992b4cbe90f Reviewed-on: https://go-review.googlesource.com/30933 Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/link/internal/ld/config.go b/src/cmd/link/internal/ld/config.go index f740e4811f..c9ee8847ad 100644 --- a/src/cmd/link/internal/ld/config.go +++ b/src/cmd/link/internal/ld/config.go @@ -201,6 +201,8 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) { // Internal linking does not support TLS_IE. return true, "buildmode=pie" } + case BuildmodePlugin: + return true, "buildmode=plugin" case BuildmodeShared: return true, "buildmode=shared" }