]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: remove buffered file I/O from OutBuf
authorJeremy Faller <jeremy@golang.org>
Fri, 17 Apr 2020 20:07:45 +0000 (16:07 -0400)
committerJeremy Faller <jeremy@golang.org>
Mon, 20 Apr 2020 13:10:55 +0000 (13:10 +0000)
commit93c9a3bd387f561dd07e4811602b0755276444ee
tree96293e70af622bf1022969563bd268d6de22ed22
parent7fe3f30bbbcb89ced4fb2cd4cbb93c8a0986a973
[dev.link] cmd/link: remove buffered file I/O from OutBuf

Recreation of CL 228317.

The problem with that original CL was a late requested change,
reordering reloc and asmb, resulting in symbols having stale pointers to
their data. I've fixed this by preallocating the heap variable in OutBuf
for platforms w/o mmap.

Change-Id: Icdb392ac2c8d6518830f4c84cf422e78b8ab68c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/228782
Run-TryBot: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
16 files changed:
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/ld/outbuf.go
src/cmd/link/internal/ld/outbuf_nommap.go
src/cmd/link/internal/ld/outbuf_test.go
src/cmd/link/internal/ld/xcoff.go
src/cmd/link/internal/mips/asm.go
src/cmd/link/internal/mips64/asm.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/riscv64/asm.go
src/cmd/link/internal/s390x/asm.go
src/cmd/link/internal/wasm/asm.go
src/cmd/link/internal/x86/asm.go