diff options
| author | Ian Lance Taylor <iant@golang.org> | 2025-11-02 13:54:22 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-11-04 16:38:05 -0800 |
| commit | 7347b54727519eecf693e9c10c504dc28611cbbf (patch) | |
| tree | e14a50efa08ed2e21936fc556557498fc4f87360 /src/debug | |
| parent | 6914dd11c05678e78a50d6bd0c6f6789e00f6d6d (diff) | |
| download | go-7347b54727519eecf693e9c10c504dc28611cbbf.tar.xz | |
cmd/link: don't generate .gosymtab section
Since Go 1.2 the section is always empty.
Also remove the code looking for .gosymtab in cmd/internal/objfile.
For #76038
Change-Id: Icd34c870ed0c6da8001e8d32305f79905ee2b066
Reviewed-on: https://go-review.googlesource.com/c/go/+/717200
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/symtab.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug/gosym/symtab.go b/src/debug/gosym/symtab.go index bf38927254..08d46684bf 100644 --- a/src/debug/gosym/symtab.go +++ b/src/debug/gosym/symtab.go @@ -332,7 +332,8 @@ func walksymtab(data []byte, fn func(sym) error) error { // NewTable decodes the Go symbol table (the ".gosymtab" section in ELF), // returning an in-memory representation. -// Starting with Go 1.3, the Go symbol table no longer includes symbol data. +// Starting with Go 1.3, the Go symbol table no longer includes symbol data; +// callers should pass nil for the symtab parameter. func NewTable(symtab []byte, pcln *LineTable) (*Table, error) { var n int err := walksymtab(symtab, func(s sym) error { |
