mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Revert "[dev.link] cmd/link: remove buffered file I/O from OutBuf"
This reverts commit b2def42d9e.
Reason for revert: trybots failing
Change-Id: I920be6d8de158b1e513154ac0eb0c8fa0cffa9f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/228657
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
b2def42d9e
commit
7fe3f30bbb
15 changed files with 135 additions and 41 deletions
|
|
@ -204,6 +204,7 @@ func asmb2(ctxt *ld.Link) {
|
|||
|
||||
ctxt.Out.SeekSet(int64(symo))
|
||||
ld.Asmelfsym(ctxt)
|
||||
ctxt.Out.Flush()
|
||||
ctxt.Out.Write(ld.Elfstrdat)
|
||||
|
||||
if ctxt.LinkMode == ld.LinkExternal {
|
||||
|
|
@ -219,6 +220,7 @@ func asmb2(ctxt *ld.Link) {
|
|||
ld.Asmbelf(ctxt, int64(symo))
|
||||
}
|
||||
|
||||
ctxt.Out.Flush()
|
||||
if *ld.FlagC {
|
||||
fmt.Printf("textsize=%d\n", ld.Segtext.Filelen)
|
||||
fmt.Printf("datsize=%d\n", ld.Segdata.Filelen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue