]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: convert pcln linker phase to use loader APIs
authorThan McIntosh <thanm@google.com>
Tue, 7 Apr 2020 21:08:00 +0000 (17:08 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 10 Apr 2020 16:35:02 +0000 (16:35 +0000)
commitdb48c404cf8dc955a07d3a110b8e7099055075b3
tree0378f378b44ebcd2dae4bdbb381ab1342122f2e7
parentc306fbaa1c0dc8be7d015d55db4ddd3253ccf98e
[dev.link] cmd/link: convert pcln linker phase to use loader APIs

Rework the linker's pcln phase to work with the new loader. As part of
this set of changes the handling of "go.file..." symbols has been
revised somewhat -- previously they were treated as always live in the
loader, and now we no longer do this.

The original plan had been to have the new implementation generate
nameless "inltree" symbols, however the plan now is to keep them
named for now and convert them to nameless in a subsequent patch.

Change-Id: If71c93ff1f146dbb63b6ee2546308acdc94b643c
Reviewed-on: https://go-review.googlesource.com/c/go/+/227759
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/loader/loader.go