mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: delete some deadcode
Change-Id: Ic4ca89ced19bf91e3d3ee10b7522d7ebe6b7c7fb Reviewed-on: https://go-review.googlesource.com/c/go/+/234116 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
b97212d1f1
commit
7f872be02f
3 changed files with 1 additions and 27 deletions
|
|
@ -121,9 +121,6 @@ type ArchSyms struct {
|
|||
DynStr2 loader.Sym
|
||||
}
|
||||
|
||||
const BeforeLoadlibFull = 1
|
||||
const AfterLoadlibFull = 2
|
||||
|
||||
// mkArchSym is a helper for setArchSyms, to set up a special symbol.
|
||||
func (ctxt *Link) mkArchSym(name string, ver int, ls *loader.Sym) {
|
||||
*ls = ctxt.loader.LookupOrCreateSym(name, ver)
|
||||
|
|
@ -136,8 +133,7 @@ func (ctxt *Link) mkArchSymVec(name string, ver int, ls []loader.Sym) {
|
|||
}
|
||||
|
||||
// setArchSyms sets up the ArchSyms structure, and must be called before
|
||||
// relocations are applied. This function is invoked twice, once prior
|
||||
// to loadlibfull(), and once after the work of loadlibfull is complete.
|
||||
// relocations are applied.
|
||||
func (ctxt *Link) setArchSyms() {
|
||||
ctxt.mkArchSym(".got", 0, &ctxt.GOT2)
|
||||
ctxt.mkArchSym(".plt", 0, &ctxt.PLT2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue