]> Cypherpunks repositories - gostls13.git/commit
cmd/link: don't generate .gosymtab section
authorIan Lance Taylor <iant@golang.org>
Sun, 2 Nov 2025 21:54:22 +0000 (13:54 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 00:38:05 +0000 (16:38 -0800)
commit7347b54727519eecf693e9c10c504dc28611cbbf
treee14a50efa08ed2e21936fc556557498fc4f87360
parent6914dd11c05678e78a50d6bd0c6f6789e00f6d6d
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>
15 files changed:
src/cmd/internal/objfile/elf.go
src/cmd/internal/objfile/goobj.go
src/cmd/internal/objfile/macho.go
src/cmd/internal/objfile/objfile.go
src/cmd/internal/objfile/pe.go
src/cmd/internal/objfile/plan9obj.go
src/cmd/internal/objfile/xcoff.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/macho_test.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/sym/symkind.go
src/cmd/link/internal/sym/symkind_string.go
src/cmd/link/internal/wasm/asm.go
src/debug/gosym/symtab.go