]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: remove Plan 9 symbol table
authorRuss Cox <rsc@golang.org>
Wed, 19 Feb 2014 04:41:15 +0000 (23:41 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 19 Feb 2014 04:41:15 +0000 (23:41 -0500)
commit964f6d3ec4c6e2bed377878bd2862767bfae463d
treedf477176ca0c94a0911504912a3cdbf52a76bcd5
parentcce25c88ce96a8c6cc0af212bcd9f75bf9d3fb86
cmd/ld: remove Plan 9 symbol table

Update #6853

Nothing reads the Plan 9 symbol table anymore.
The last holdout was 'go tool nm', but since being rewritten in Go
it uses the standard symbol table for the binary format
(ELF, Mach-O, PE) instead.

Removing the Plan 9 symbol table saves ~15% disk space
on most binaries.

Two supporting changes included in this CL:

debug/gosym: use Go 1.2 pclntab to synthesize func-only
symbol table when there is no Plan 9 symbol table

debug/elf, debug/macho, debug/pe: ignore final EOF from ReadAt

LGTM=r
R=r, bradfitz
CC=golang-codereviews
https://golang.org/cl/65740045
src/cmd/ld/symtab.c
src/pkg/debug/elf/file.go
src/pkg/debug/gosym/pclntab.go
src/pkg/debug/gosym/symtab.go
src/pkg/debug/macho/file.go
src/pkg/debug/pe/file.go