]> Cypherpunks repositories - gostls13.git/commit
cmd/link: improve error for missing SDYNIMPORT support on mips/mips64
authorThan McIntosh <thanm@google.com>
Thu, 9 Feb 2023 14:08:44 +0000 (09:08 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 10 Feb 2023 14:29:07 +0000 (14:29 +0000)
commit7d57a9ce82cc6841307bc1c3383808b36a884bc9
treed41214eda898d13c608dc125fa965ac166a7b455
parentfb79da299127b3ff85e14f37e4616a26e6c2a720
cmd/link: improve error for missing SDYNIMPORT support on mips/mips64

Issue an error (instead of crashing) when encountering a symbol that
requires dynamic relocations on mips/mips64. The dynimport support is
in progress, but is not done yet, so rather than crashing, print a
message indicating that the feature is not yet implemented and exit.

Fixes #58240.

Change-Id: I9ad64c89e4f7b4b180964b35ad1d72d375f2df7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/466895
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
src/cmd/link/internal/mips/obj.go
src/cmd/link/internal/mips64/obj.go