go: plugin: -buildmode=plugin not supported on linux/mips
According to https://golang.org/pkg/plugin/ plugins under Linux should be supported.
What version of Go are you using (go version)?
go version go1.8.3 linux/amd64 go version devel +ac29f30dbb Fri Jul 28 00:29:08 2017 +0000 linux/amd64
What did you do?
GOOS=linux GOARCH=mips ./go build -a -buildmode=plugin main.go
What did you expect to see?
Successfully building mips(32) plugin
What did you see instead?
“-buildmode=plugin not supported on linux/mips”
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 1
- Comments: 26 (9 by maintainers)
Commits related to this issue
- golang: Add support for ASLR/PIE for host and target Go This adds support to compile host and target Go as position-independent executables. Host Go will have PIE enabled if Go supports PIE on the h... — committed to jefferyto/openwrt-packages by jefferyto 4 years ago
- golang: Add support for ASLR/PIE for Go packages This adds support to compile position-independent executables for packages that use golang-package.mk. Go packages will have PIE enabled if: * Go sup... — committed to jefferyto/openwrt-packages by jefferyto 4 years ago
Seems it was not integrated in 1.12 (go1.12.5), is it still work in progress ?
@WK-LLP @paride Both
buildmode=c-sharedandbuildmode=pluginare currently work in progress. I hope they will be ready for 1.12 release.Are there technical challenges that is preventing this feature to be implemented in mips?
@daixiang0 @bradfitz I’ve just rebased changes for
buildmode=c-shared. You can find them here. Also, I have changes forbuildmode=pieandbuildmode=pluginbut they are dependent on c-shared changes so I’m waiting for them to be accepted.@vstefanovic I’m also curious about plugin support for mips, are there any good news now? thanks a lot~
Hi Julian, well, the news is that @milanknezevic is about to start working on the plugin mode.