From: Cherry Zhang Date: Mon, 18 May 2020 22:27:10 +0000 (-0400) Subject: [dev.link] cmd/asm: expand package path if known X-Git-Tag: go1.16beta1~1378^2~120 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0f92cd75cf1edf712ab94f5cd7fb6e8267a0d53d;p=gostls13.git [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 TryBot-Result: Gobot Gobot Reviewed-by: Jeremy Faller Reviewed-by: Than McIntosh --- 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 != "" {