mirror of
https://github.com/golang/go
synced 2024-11-02 09:28:34 +00:00
[dev.typeparams] cmd/link: mangle symbol ABI name on Plan 9
It is probably not strictly necessary (as we don't support external linking on Plan 9). Do it for consistency (and less confusion). Change-Id: I0b48562061273ccbd4be83db4a981b8e465b1c95 Reviewed-on: https://go-review.googlesource.com/c/go/+/321331 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>
This commit is contained in:
parent
ed2001232a
commit
240d6d00ca
1 changed files with 1 additions and 0 deletions
|
@ -300,6 +300,7 @@ func putplan9sym(ctxt *Link, ldr *loader.Loader, s loader.Sym, char SymbolType)
|
|||
ctxt.Out.Write8(uint8(t + 0x80)) /* 0x80 is variable length */
|
||||
|
||||
name := ldr.SymName(s)
|
||||
name = mangleABIName(ctxt, ldr, s, name)
|
||||
ctxt.Out.WriteString(name)
|
||||
ctxt.Out.Write8(0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue