diff options
author | Cherry Mui <cherryyz@google.com> | 2021-05-06 16:16:19 -0400 |
---|---|---|
committer | Cherry Mui <cherryyz@google.com> | 2021-05-07 14:13:18 +0000 |
commit | bdb804466568c79e488a7b16f6ffd045f2dc6dfa (patch) | |
tree | 23b0e4f3cd02915a3ac0481365064c9d7c02e06d /src | |
parent | f5423ea615b94455e4f6b9cbee491b492bf2e1fe (diff) | |
download | go-bdb804466568c79e488a7b16f6ffd045f2dc6dfa.tar.gz go-bdb804466568c79e488a7b16f6ffd045f2dc6dfa.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/link/internal/ld/symtab.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/symtab.go b/src/cmd/link/internal/ld/symtab.go index 3b4fda0c89..00f557875a 100644 --- a/src/cmd/link/internal/ld/symtab.go +++ b/src/cmd/link/internal/ld/symtab.go @@ -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) |