]> Cypherpunks repositories - gostls13.git/commit
cmd/link: start file-local symbols at version 10
authorAustin Clements <austin@google.com>
Fri, 19 Oct 2018 21:42:11 +0000 (17:42 -0400)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 20:27:22 +0000 (20:27 +0000)
commit14560da7e469aff46a6f1270ce84204bbd6ffdb3
tree9cea2c8143958de2c3274fda909366fae7ec359b
parentec4ae29f52cee3f6e448d8279708ea47d553f35f
cmd/link: start file-local symbols at version 10

We're going to use the linker's symbol versions to track ABIs.
Currently, version 0 is used for global symbols and version > 0 is
used for file-local symbols. This CL reserves versions 0 to 9 for
global symbols with ABIs and uses version 10 and up for file-local
symbols. To make this clean, it also introduces a method on Symbol for
querying whether it's file-local.

For #27539.

Change-Id: Id3bc7369268f35128b14318a62e86335181a80e5
Reviewed-on: https://go-review.googlesource.com/c/146859
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/sym/symbol.go
src/cmd/link/internal/sym/symbols.go