Open
Description
What version of Go are you using (go version
)?
$ go version go version go1.13 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GONOPROXY="" GONOSUMDB="*.ctripcorp.com" GOOS="linux" GOPATH="/root/go" GOPRIVATE="" GOPROXY="https://goproxy.io,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build028007412=/tmp/go-build -gno-record-gcc-switches"
What did you do?
$ go tool link -v main.o HEADER = -H5 -T0x401000 -R0x1000 searching for runtime.a in /usr/local/go/pkg/linux_amd64/runtime.a 0.00 deadcode 0.02 symsize = 0 0.03 pclntab=251242 bytes, funcdata total 57287 bytes 0.04 dodata 0.04 dwarf 0.11 asmb 0.11 codeblk 0.12 rodatblk 0.12 datblk 0.12 reloc 0.12 sym 0.12 symsize = 2688 0.13 symsize = 34560 0.13 dwarf 0.13 headr 0.13 cpu time 21167 symbols 34132 liveness data
What did you expect to see?
searching for runtime.a in /usr/local/go/pkg/linux_amd64/
What did you see instead?
searching for runtime.a in /usr/local/go/pkg/linux_amd64/runtime.a
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triage Backlog
Milestone
Relationships
Development
No branches or pull requests
Activity
gopherbot commentedon Dec 18, 2019
Change https://golang.org/cl/211817 mentions this issue:
cmd/link: log searching directory instead of full pathname
dmitshur commentedon Dec 20, 2019
/cc @mwhudson @thanm per owners.
Also /cc @ianlancetaylor since you already looked at the CL that fixes this issue.
runtime.firstmoduledata
is different fromruntime.pclntab
when using external links onmacOS arm64 cgo
#69428