aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2021-05-13 16:36:32 -0400
committerCherry Mui <cherryyz@google.com>2021-05-13 21:01:50 +0000
commit92c189f2117415ff7a4bd9652422ba9af1745cb9 (patch)
tree32c8a4c2bd26b15007e21fc10b858287796902e0 /src/cmd/link/internal/ld/deadcode.go
parent7a7624a3fa4665e8d75919746b6d762d3984d471 (diff)
downloadgo-92c189f2117415ff7a4bd9652422ba9af1745cb9.tar.gz
go-92c189f2117415ff7a4bd9652422ba9af1745cb9.zip
cmd/link: resolve ABI alias for runtime.unreachableMethod
We redirect references to unreachable methods to runtime.unreachableMethod. We choose to use ABIInternal symbol for this, because runtime.unreachableMethod is a defined Go function. When linking against shared libraries, and ABI wrappers are not enabled, the imported function symbols are all ABI0 and aliased to ABIInternal. We need to resolve ABI alias in this case. Change-Id: Idd64ef46ce0b5f54882ea0069ce0d59dc9b7a599 Reviewed-on: https://go-review.googlesource.com/c/go/+/319891 Trust: Cherry Mui <cherryyz@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
0 files changed, 0 insertions, 0 deletions