Skip to content

Commit 413afca

Browse files
committedOct 12, 2016
cmd/link: force external linking for plugins
Fixes #17415 Change-Id: I6f896d549092e5e0dba72351e5385992b4cbe90f Reviewed-on: https://go-review.googlesource.com/30933 Run-TryBot: David Crawshaw <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 9e98e7e commit 413afca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/cmd/link/internal/ld/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) {
201201
// Internal linking does not support TLS_IE.
202202
return true, "buildmode=pie"
203203
}
204+
case BuildmodePlugin:
205+
return true, "buildmode=plugin"
204206
case BuildmodeShared:
205207
return true, "buildmode=shared"
206208
}

0 commit comments

Comments
 (0)
Please sign in to comment.