aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/sym
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-03-13 17:02:31 -0400
committerCherry Zhang <cherryyz@google.com>2020-03-16 13:50:40 +0000
commit80702c7c3c6dfd4c48e1504e50e6cc0dcbdefade (patch)
treef7db4a94781ebd19c8ac43e03766bc86d0fd1a41 /src/cmd/link/internal/sym
parent0e06775eebf6d357f604a55c803aab5cc8054e67 (diff)
downloadgo-80702c7c3c6dfd4c48e1504e50e6cc0dcbdefade.tar.xz
[dev.link] cmd/link: use versioned .TOC. symbols on AIX
I thought that only non-static symbols need TOC, but apparently this is not true. We need to use versioned .TOC. symbols. Partially fix AIX build. There is still another problem, but this gets us a bit farther in make.bash. Change-Id: I40ba4a4dd27da0fc6ab26e4a54ff76bd2930aef1 Reviewed-on: https://go-review.googlesource.com/c/go/+/223379 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/link/internal/sym')
-rw-r--r--src/cmd/link/internal/sym/symbols.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/link/internal/sym/symbols.go b/src/cmd/link/internal/sym/symbols.go
index e64779da9c..10e4ac5f54 100644
--- a/src/cmd/link/internal/sym/symbols.go
+++ b/src/cmd/link/internal/sym/symbols.go
@@ -62,3 +62,8 @@ func (syms *Symbols) IncVersion() int {
syms.versions++
return syms.versions - 1
}
+
+// returns the maximum version number
+func (syms *Symbols) MaxVersion() int {
+ return syms.versions
+}