]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: write data sections to heap in Asmb on Wasm
authorCherry Zhang <cherryyz@google.com>
Tue, 28 Apr 2020 13:53:29 +0000 (09:53 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 28 Apr 2020 18:36:45 +0000 (18:36 +0000)
commitdd34841de701d08632db27dabd9fac4aa104cb66
treecc1d558f624572f038cce5026982446ec133b88a
parent3e8975172f0cf72be89d5bbeb46dd3084faa9b06
[dev.link] cmd/link: write data sections to heap in Asmb on Wasm

Make Wasm more like other architectures, writing data sections to
heap in Asmb instead of Asmb2. Then we can remove the
copy-on-write logic in applying relocations.

Change-Id: I26d5315ea9fba032fe4bdb9b5c7fe483611c4373
Reviewed-on: https://go-review.googlesource.com/c/go/+/230465
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>
13 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/data2.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/main.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