diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-04-28 09:53:29 -0400 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-04-28 18:36:45 +0000 |
commit | dd34841de701d08632db27dabd9fac4aa104cb66 (patch) | |
tree | cc1d558f624572f038cce5026982446ec133b88a /src/cmd/link/internal/ld/lib.go | |
parent | 3e8975172f0cf72be89d5bbeb46dd3084faa9b06 (diff) | |
download | go-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.go | 2 |
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 |