From f9ed846a46974823e5136e08dc850853e5172a2f Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Fri, 24 Apr 2020 17:15:40 -0400 Subject: [PATCH] [dev.link] cmd/link: use new dodata on Plan 9 and Wasm They don't have fancy Adddynrel stuff, so we can just enable it. Change-Id: I84082c3187d8a9ffa3a9c5458959794df0e3c2b6 Reviewed-on: https://go-review.googlesource.com/c/go/+/230030 Run-TryBot: Cherry Zhang TryBot-Result: Gobot Gobot Reviewed-by: Than McIntosh --- src/cmd/link/internal/ld/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmd/link/internal/ld/main.go b/src/cmd/link/internal/ld/main.go index 35363aa4eee..96860ce4d8b 100644 --- a/src/cmd/link/internal/ld/main.go +++ b/src/cmd/link/internal/ld/main.go @@ -211,6 +211,8 @@ func Main(arch *sys.Arch, theArch Arch) { if !ctxt.IsAMD64() { *flagnewDoData = false } + case ctxt.IsPlan9(), ctxt.IsWasm(): + // supported default: *flagnewDoData = false }