]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: stop populating lib/unit.Textp
authorCherry Zhang <cherryyz@google.com>
Fri, 10 Apr 2020 23:13:01 +0000 (19:13 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 13 Apr 2020 17:48:39 +0000 (17:48 +0000)
commit14cf804aa047cfdb7be90098d53030773fc1424d
treed8b34113e60bff0f3b4ef3e725f6a957b28896f9
parent2820bcede0ec2f1ec1957e40dab183a18196559b
[dev.link] cmd/link: stop populating lib/unit.Textp

lib.Textp was used for text address assignment and trampoline
insertion. Now that it has been converted to using the loader,
no need to populate lib.Textp.

Port the logic of canonicalizing dupok symbol's package to the
loader.

unit.Textp was used for DWARF generation, which has also been
converted to using the loader.

Change-Id: I22d4dd30a52a29dd5b1b7b795d43a19f6215e4ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/228140
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/sym/library.go