mirror of
https://github.com/golang/go
synced 2024-11-26 16:57:14 -07: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
@ -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 */
|
ctxt.Out.Write8(uint8(t + 0x80)) /* 0x80 is variable length */
|
||||||
|
|
||||||
name := ldr.SymName(s)
|
name := ldr.SymName(s)
|
||||||
|
name = mangleABIName(ctxt, ldr, s, name)
|
||||||
ctxt.Out.WriteString(name)
|
ctxt.Out.WriteString(name)
|
||||||
ctxt.Out.Write8(0)
|
ctxt.Out.Write8(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user