New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin: Open : invalid ELF header
with non-main package
#19882
Comments
How precisely did you build the plugin? |
invalid ELF header
with non-main package invalid ELF header
with non-main package
|
What is the output of |
|
That is what I would expect for a file built without Oh, I see what you mean. If you use |
CC @crawshaw |
Duplicate of #19023, which is the older issue. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
https://play.golang.org/p/nLF1o0CejJ
Seems that when we call the
plugin.Open()
it expects that the functions are defined with the samemain
package. Usually, when the builtabcd.so
plugin is built and shipped we may not know the package name.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: