mirror of
https://github.com/golang/go
synced 2024-11-26 05:07:59 -07:00
cmd/link: don't include arginfo symbols in symbol table
We recently add arginfo symbols for traceback argument metadata. Like other metadata symbols (GC bitmaps, opendefer info, etc.), skip arginfo symbols for symbol table as well. Fixes #45971. Change-Id: I7a126b75f70ec88e2170e9a274d968762c7bce56 Reviewed-on: https://go-review.googlesource.com/c/go/+/317769 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
f5423ea615
commit
bdb8044665
@ -585,7 +585,9 @@ func (ctxt *Link) symtab(pcln *pclntab) []sym.SymKind {
|
||||
strings.HasPrefix(name, "gclocals."),
|
||||
strings.HasPrefix(name, "gclocals·"),
|
||||
ldr.SymType(s) == sym.SGOFUNC && s != symgofunc,
|
||||
strings.HasSuffix(name, ".opendefer"):
|
||||
strings.HasSuffix(name, ".opendefer"),
|
||||
strings.HasSuffix(name, ".arginfo0"),
|
||||
strings.HasSuffix(name, ".arginfo1"):
|
||||
symGroupType[s] = sym.SGOFUNC
|
||||
ldr.SetAttrNotInSymbolTable(s, true)
|
||||
ldr.SetCarrierSym(s, symgofunc)
|
||||
|
Loading…
Reference in New Issue
Block a user