aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist
diff options
context:
space:
mode:
authorJeremy Faller <jeremy@golang.org>2020-07-28 13:49:13 -0400
committerJeremy Faller <jeremy@golang.org>2020-07-31 13:55:19 +0000
commit128f4e51f2d60c984f9bcb68ac141eff6e47875e (patch)
treefbb2043ab20ef2a2f5fb6bacf12e3bad3e81e086 /src/cmd/dist
parent6ac9914383bc88d014cbc681dae758372e6ca823 (diff)
downloadgo-128f4e51f2d60c984f9bcb68ac141eff6e47875e.tar.xz
[dev.link] ensure package path is set when TEXT symbols are created
We're reworking pclntab generation in the linker, and with that we're moving FuncID generation in to the compiler. Determining the FuncID is done by a lookup on the package.function name; therefore, we need the package whenever we make the TEXT symbols. Change-Id: I805445ffbf2f895f06ce3a91fb09126d012bf86e Reviewed-on: https://go-review.googlesource.com/c/go/+/245318 Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/dist')
-rw-r--r--src/cmd/dist/build.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
index 9e2b4f33b8..a817e6fcd7 100644
--- a/src/cmd/dist/build.go
+++ b/src/cmd/dist/build.go
@@ -824,6 +824,7 @@ func runInstall(pkg string, ch chan struct{}) {
"-D", "GOOS_" + goos,
"-D", "GOARCH_" + goarch,
"-D", "GOOS_GOARCH_" + goos + "_" + goarch,
+ "-p", pkg,
}
if goarch == "mips" || goarch == "mipsle" {
// Define GOMIPS_value from gomips.