]> Cypherpunks repositories - gostls13.git/commit
cmd/link: mangle ABI name for shared linkage
authorCherry Zhang <cherryyz@google.com>
Fri, 30 Apr 2021 21:21:22 +0000 (17:21 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 1 May 2021 19:17:12 +0000 (19:17 +0000)
commitd7473fd9076a978352d3bb29c13464c3c17d46c3
tree9123d860476c717d0610f2803d024c36b7fd6725
parent879db69ce2de814bc3203c39b45617ba51cc5366
cmd/link: mangle ABI name for shared linkage

Currently, when ABI wrappers are used, we don't use ABI aliases.
One exception is shared linkage. When loading a shared library, if
a symbol has only one ABI, and the name is not mangled, we don't
know what ABI it is, so we have to use ABI aliases.

This CL makes it always mangle ABIInternal function name in shared
linkage, so we know what ABI to choose when loading a shared
library. And we now can fully stop using ABI aliases when ABI
wrappers are used.

Change-Id: Id15d9cd72a59f391f54574710ebba7dc44cb6e23
Reviewed-on: https://go-review.googlesource.com/c/go/+/315869
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/symtab.go