You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598603
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65985f0
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa659850f
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598510
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598418
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65983f9
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65983b0
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598390
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598387
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa6598373
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65982f4
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65982e4
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65982c9
internal/cpu.processOptions: pc-relative relocation address for internal/cpu.options is too big: 0xa65982c4
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c986a
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c984b
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c9833
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c9818
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c97f6
internal/cpu.doinit: pc-relative relocation address for internal/cpu.X86 is too big: 0xa67c97d0
internal/cpu.doinit: pc-relative relocation address for internal/cpu.options is too big: 0xa659815a
/Users/xxx/go/pkg/tool/darwin_amd64/link: too many errors
The text was updated successfully, but these errors were encountered:
thanm
changed the title
affected/package: cmd/link
cmd/link: "pc-relative relocation address too big" for program with huge static data
Sep 25, 2023
The crux of the matter here is that the Go toolchain is not set up to support programs that use more than 2GB of static data.
I am going to close this as a duplicate of 7980 for now.
It is possible to imagine adding support for programs that use huge amounts of data (perhaps via something like -mcmodel=medium as describe here), however this work hasn't been done yet, and it would have to be very carefully designed in order to avoid performance problems.
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?
What did you expect to see?
Compile successfully && console prints 0
What did you see instead?
Compile failed && console prints
The text was updated successfully, but these errors were encountered: