]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: force external linking for plugins
authorDavid Crawshaw <crawshaw@golang.org>
Wed, 12 Oct 2016 16:45:16 +0000 (12:45 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Wed, 12 Oct 2016 17:26:34 +0000 (17:26 +0000)
Fixes #17415

Change-Id: I6f896d549092e5e0dba72351e5385992b4cbe90f
Reviewed-on: https://go-review.googlesource.com/30933
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/config.go

index f740e4811f0a561833bf2e17921b2788204cd1a8..c9ee8847ad2bf0dfca86c53c3d7c944827de0201 100644 (file)
@@ -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"
        }