]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: skip symtab entries for selected file local symbols
authorThan McIntosh <thanm@google.com>
Tue, 30 Jun 2020 14:22:13 +0000 (10:22 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 8 Jul 2020 16:04:12 +0000 (16:04 +0000)
commit8aa036e9135f6f24ab6a5f250a4fba47a5d3a083
treecea647b066e6e982e4cc81cc5018d6eebfccd8b5
parent0434d4093458d24db6af1e65fb257cee78512c25
[dev.link] cmd/link: skip symtab entries for selected file local symbols

Don't emit symbol table entries for compiler-generated file-local
symbols (this category includes .stmp_* temporaries and *.stkobj
symbols). Note that user-written static symbols within assembler
sources will still be added to the symbol table. Apply the same test
when emitting DWARF for global variables.

Change-Id: I4db77a2750a0b575e051dfea895c4742cf6709a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/240539
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/internal/obj/objfile2.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/loader/loader.go