aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/asm
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-05-18 18:27:10 -0400
committerCherry Zhang <cherryyz@google.com>2020-05-19 14:53:54 +0000
commit0f92cd75cf1edf712ab94f5cd7fb6e8267a0d53d (patch)
tree4e2a439a4345bffe11fb0a5c5d274c182bf16ce7 /src/cmd/asm
parent586d0755e2cd6a51f0837c6b7748e93d58b966f1 (diff)
downloadgo-0f92cd75cf1edf712ab94f5cd7fb6e8267a0d53d.tar.xz
[dev.link] cmd/asm: expand package path if known
If the package path is known, pass it to the object file writer so the symbol names are pre-expanded. (We already expand the package path in debug info.) Change-Id: I2b2b71edbb98924cbf3c4f9142b7e109e5b7501a Reviewed-on: https://go-review.googlesource.com/c/go/+/234491 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/asm')
-rw-r--r--src/cmd/asm/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/asm/main.go b/src/cmd/asm/main.go
index 71ee04128c..4a5dfecf6d 100644
--- a/src/cmd/asm/main.go
+++ b/src/cmd/asm/main.go
@@ -97,7 +97,7 @@ func main() {
}
if ok && !*flags.SymABIs {
ctxt.NumberSyms(true)
- obj.WriteObjFile(ctxt, buf, "")
+ obj.WriteObjFile(ctxt, buf, *flags.Importpath)
}
if !ok || diag {
if failedFile != "" {