Commit 413afcaf authored by David Crawshaw's avatar David Crawshaw

cmd/link: force external linking for plugins

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: default avatarIan Lance Taylor <iant@golang.org>
parent 9e98e7e6
...@@ -201,6 +201,8 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) { ...@@ -201,6 +201,8 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) {
// Internal linking does not support TLS_IE. // Internal linking does not support TLS_IE.
return true, "buildmode=pie" return true, "buildmode=pie"
} }
case BuildmodePlugin:
return true, "buildmode=plugin"
case BuildmodeShared: case BuildmodeShared:
return true, "buildmode=shared" return true, "buildmode=shared"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment