mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: remove ctxt from objfile reader
Preparation for moving the object file reader to its own package. For #22095 Change-Id: I31fe4a10a2c465f8ea4bf548f40918807e4ec6b5 Reviewed-on: https://go-review.googlesource.com/67314 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
52abe50c33
commit
c80338accb
3 changed files with 34 additions and 24 deletions
|
|
@ -1425,7 +1425,8 @@ func ldobj(ctxt *Link, f *bio.Reader, lib *Library, length int64, pn string, fil
|
|||
ldpkg(ctxt, f, pkg, import1-import0-2, pn, whence) // -2 for !\n
|
||||
f.Seek(import1, 0)
|
||||
|
||||
LoadObjFile(ctxt, f, lib, eof-f.Offset(), pn)
|
||||
LoadObjFile(ctxt.Arch, ctxt.Syms, f, lib, eof-f.Offset(), pn)
|
||||
lib.addImports(ctxt, pn)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue