mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: clean up unused function and arguments
Change-Id: Idacb027c5ae11e029ee4ab10f6c9a76ff435e5b7 Reviewed-on: https://go-review.googlesource.com/c/go/+/219228 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
b0275bfbf4
commit
5a8b1509dd
2 changed files with 6 additions and 14 deletions
|
|
@ -446,7 +446,7 @@ func (ctxt *Link) loadlib() {
|
|||
}
|
||||
|
||||
// Add non-package symbols and references of externally defined symbols.
|
||||
ctxt.loader.LoadNonpkgSyms(ctxt.Arch, ctxt.Syms)
|
||||
ctxt.loader.LoadNonpkgSyms(ctxt.Syms)
|
||||
|
||||
// Load symbols from shared libraries, after all Go object symbols are loaded.
|
||||
for _, lib := range ctxt.Library {
|
||||
|
|
@ -1815,7 +1815,7 @@ func ldobj(ctxt *Link, f *bio.Reader, lib *sym.Library, length int64, pn string,
|
|||
ldpkg(ctxt, f, lib, import1-import0-2, pn) // -2 for !\n
|
||||
f.MustSeek(import1, 0)
|
||||
|
||||
ctxt.loader.Preload(ctxt.Arch, ctxt.Syms, f, lib, unit, eof-f.Offset(), pn, 0)
|
||||
ctxt.loader.Preload(ctxt.Syms, f, lib, unit, eof-f.Offset(), 0)
|
||||
addImports(ctxt, lib, pn)
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue