plugin: /usr/bin/ld: failed to set dynamic section sizes: bad value #58800
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Trying to build plugin with the following code:
Go playground: https://go.dev/play/p/D0QJ0S09DX7?v=goprev
Ran
go build -buildmode=plugin --ldflags '-s -w' -o plugin.so .
What did you expect to see?
Expect
plugin.so
to be built.What did you see instead?
The following error:
go build -buildmode=plugin
OutputPreviously, the package
attributesprocessor
was being used in our main executable. We started seeing this error when we moved the code to build as a plugin.The text was updated successfully, but these errors were encountered: