]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/link: use new dodata on Plan 9 and Wasm
authorCherry Zhang <cherryyz@google.com>
Fri, 24 Apr 2020 21:15:40 +0000 (17:15 -0400)
committerCherry Zhang <cherryyz@google.com>
Sat, 25 Apr 2020 01:21:25 +0000 (01:21 +0000)
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 <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/main.go

index 35363aa4eee3bb158c7e17a2ea41ff1272175639..96860ce4d8be2dfcfbb0712fa64a0ce55bacd381 100644 (file)
@@ -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
                }