mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile,cmd/asm: fix buglet in -S=2 output
In CL 255718 the -S=2 assembly output was enhanced to dump symbol ABIs. This patch fixes a bug in that CL: when dumping the relocations on a symbol, we were dumping the symbol's ABI as opposed to the relocation target symbol's ABI. Change-Id: I134128687757f549fa37b998cff1290765889140 Reviewed-on: https://go-review.googlesource.com/c/go/+/257202 Trust: Than McIntosh <thanm@google.com> Run-TryBot: Than McIntosh <thanm@google.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
23cc16cdd2
commit
f765dcbd5c
1 changed files with 1 additions and 1 deletions
|
|
@ -734,7 +734,7 @@ func (ctxt *Link) writeSymDebugNamed(s *LSym, name string) {
|
|||
if r.Sym != nil {
|
||||
name = r.Sym.Name
|
||||
if ctxt.Debugasm > 1 {
|
||||
ver = fmt.Sprintf("<%d>", s.ABI())
|
||||
ver = fmt.Sprintf("<%d>", r.Sym.ABI())
|
||||
}
|
||||
} else if r.Type == objabi.R_TLS_LE {
|
||||
name = "TLS"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue