]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj: remove ABI aliases from object file
authorCherry Mui <cherryyz@google.com>
Tue, 21 Sep 2021 18:55:23 +0000 (14:55 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 22 Sep 2021 15:49:42 +0000 (15:49 +0000)
Change-Id: I8a51f054e017e0116dee4e435b60c08d72e998e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/351331
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/sym.go

index 28626e6e037a5c33f131aec8e2ba81aec5cf086c..592d2a655b3945f027c85fd0e3c7cddfe1e4b457 100644 (file)
@@ -902,16 +902,6 @@ type Link struct {
        Text []*LSym
        Data []*LSym
 
-       // ABIAliases are text symbols that should be aliased to all
-       // ABIs. These symbols may only be referenced and not defined
-       // by this object, since the need for an alias may appear in a
-       // different object than the definition. Hence, this
-       // information can't be carried in the symbol definition.
-       //
-       // TODO(austin): Replace this with ABI wrappers once the ABIs
-       // actually diverge.
-       ABIAliases []*LSym
-
        // Constant symbols (e.g. $i64.*) are data symbols created late
        // in the concurrent phase. To ensure a deterministic order, we
        // add them to a separate list, sort at the end, and append it
index 9e8b4dd790f001435f4eac4a48d3d6a267797d32..328911543934fa33044247ed36a91ff8961479ad 100644 (file)
@@ -330,7 +330,7 @@ const (
 
 // Traverse symbols based on flag, call fn for each symbol.
 func (ctxt *Link) traverseSyms(flag traverseFlag, fn func(*LSym)) {
-       lists := [][]*LSym{ctxt.Text, ctxt.Data, ctxt.ABIAliases}
+       lists := [][]*LSym{ctxt.Text, ctxt.Data}
        for _, list := range lists {
                for _, s := range list {
                        if flag&traverseDefs != 0 {
@@ -410,7 +410,7 @@ func (ctxt *Link) traverseFuncAux(flag traverseFlag, fsym *LSym, fn func(parent
 
 // Traverse aux symbols, calling fn for each sym/aux pair.
 func (ctxt *Link) traverseAuxSyms(flag traverseFlag, fn func(parent *LSym, aux *LSym)) {
-       lists := [][]*LSym{ctxt.Text, ctxt.Data, ctxt.ABIAliases}
+       lists := [][]*LSym{ctxt.Text, ctxt.Data}
        for _, list := range lists {
                for _, s := range list {
                        if s.Gotype != nil {