From 413afcafbfd45b6b58023a49484d8480143960e0 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Wed, 12 Oct 2016 12:45:16 -0400 Subject: [PATCH] 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 --- src/cmd/link/internal/ld/config.go | 2 ++ 1 file changed, 2 insertions(+) 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" } -- 2.48.1