cmd/link: "HEADR too small" error when linking against huge static library #47312
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?(though it also applies to at least 1.16.5, and probably goes back much further)
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?
I tried to link a Go program against a static WebRTC library (32MB without debug symbols). That, in combination with using the large
net/http
package, made Go print this error:/usr/local/go/pkg/tool/darwin_amd64/link: HEADR too small: 4408 > 4096
What did you expect to see?
I expected Go to link the binary correctly.
What did you see instead?
The aforementioned
HEADR too small
error.The text was updated successfully, but these errors were encountered: