mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 3 additions and 1 deletions
|
|
@ -585,7 +585,9 @@ func (ctxt *Link) symtab(pcln *pclntab) []sym.SymKind {
|
||||||
strings.HasPrefix(name, "gclocals."),
|
strings.HasPrefix(name, "gclocals."),
|
||||||
strings.HasPrefix(name, "gclocals·"),
|
strings.HasPrefix(name, "gclocals·"),
|
||||||
ldr.SymType(s) == sym.SGOFUNC && s != symgofunc,
|
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
|
symGroupType[s] = sym.SGOFUNC
|
||||||
ldr.SetAttrNotInSymbolTable(s, true)
|
ldr.SetAttrNotInSymbolTable(s, true)
|
||||||
ldr.SetCarrierSym(s, symgofunc)
|
ldr.SetCarrierSym(s, symgofunc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue