diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-04-06 20:56:34 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-04-08 15:28:34 +0000 |
commit | 5072c166a11f053a63c501c527e267a20b5176e1 (patch) | |
tree | d4daf4df6f351016075c0a8c9f4e822f43d0bff3 /src/cmd/link/internal/ld/lib.go | |
parent | 95ea64ba96abbba204db3f905eec8c63257f425e (diff) | |
download | go-5072c166a11f053a63c501c527e267a20b5176e1.tar.gz go-5072c166a11f053a63c501c527e267a20b5176e1.zip |
[dev.link] cmd/link: return package path in SymFile
SymFile, derived from sym.Symbol.File, is supposed to return the
package path, instead of the file name (arguably the name is
confusing). Make it so, and rename it to SymPkg.
Change-Id: I67bcd12f67cea271f2a2ce3c5724e5d228f5b2f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/227481
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/link/internal/ld/lib.go')
-rw-r--r-- | src/cmd/link/internal/ld/lib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go index a3369140c3..f16de043ef 100644 --- a/src/cmd/link/internal/ld/lib.go +++ b/src/cmd/link/internal/ld/lib.go @@ -2162,7 +2162,7 @@ func ldshlibsyms(ctxt *Link, shlib string) { l.SetAttrReachable(s, true) // Set .File for the library that actually defines the symbol. - l.SetSymFile(s, libpath) + l.SetSymPkg(s, libpath) // The decodetype_* functions in decodetype.go need access to // the type data. |