aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objfile/goobj.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2025-11-02 13:54:22 -0800
committerGopher Robot <gobot@golang.org>2025-11-04 16:38:05 -0800
commit7347b54727519eecf693e9c10c504dc28611cbbf (patch)
treee14a50efa08ed2e21936fc556557498fc4f87360 /src/cmd/internal/objfile/goobj.go
parent6914dd11c05678e78a50d6bd0c6f6789e00f6d6d (diff)
downloadgo-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/cmd/internal/objfile/goobj.go')
-rw-r--r--src/cmd/internal/objfile/goobj.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/objfile/goobj.go b/src/cmd/internal/objfile/goobj.go
index 7d564a2661..ec852d0669 100644
--- a/src/cmd/internal/objfile/goobj.go
+++ b/src/cmd/internal/objfile/goobj.go
@@ -221,10 +221,10 @@ func (f *goobjFile) symbols() ([]Sym, error) {
return syms, nil
}
-func (f *goobjFile) pcln() (textStart uint64, symtab, pclntab []byte, err error) {
+func (f *goobjFile) pcln() (textStart uint64, pclntab []byte, err error) {
// Should never be called. We implement Liner below, callers
// should use that instead.
- return 0, nil, nil, fmt.Errorf("pcln not available in go object file")
+ return 0, nil, fmt.Errorf("pcln not available in go object file")
}
// PCToLine returns the file name, line, and function data for the given pc.