aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/lib.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-04-28 09:53:29 -0400
committerCherry Zhang <cherryyz@google.com>2020-04-28 18:36:45 +0000
commitdd34841de701d08632db27dabd9fac4aa104cb66 (patch)
treecc1d558f624572f038cce5026982446ec133b88a /src/cmd/link/internal/ld/lib.go
parent3e8975172f0cf72be89d5bbeb46dd3084faa9b06 (diff)
downloadgo-dd34841de701d08632db27dabd9fac4aa104cb66.tar.gz
go-dd34841de701d08632db27dabd9fac4aa104cb66.zip
[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>
Diffstat (limited to 'src/cmd/link/internal/ld/lib.go')
-rw-r--r--src/cmd/link/internal/ld/lib.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
index 7264f9383e..57b9e8cb24 100644
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
@@ -265,7 +265,7 @@ type Arch struct {
// file. Typically, Asmb writes most of the content (sections and
// segments), for which we have computed the size and offset. Asmb2
// writes the rest.
- Asmb func(*Link)
+ Asmb func(*Link, *loader.Loader)
Asmb2 func(*Link)
Elfreloc1 func(*Link, *sym.Reloc, int64) bool