]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.link] cmd/link: enable new dodata on darwin/arm64
authorCherry Zhang <cherryyz@google.com>
Mon, 27 Apr 2020 15:10:14 +0000 (11:10 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 27 Apr 2020 15:31:21 +0000 (15:31 +0000)
Change-Id: I6234e7288212e399f766d19fbca675f45c38e12d
Reviewed-on: https://go-review.googlesource.com/c/go/+/230298
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/main.go

index 6893fa87844774b278d3e4cc315f7fb038590339..fcd391da90c2e208b9d0fe0f944f43ed7c46faae 100644 (file)
@@ -211,11 +211,7 @@ func Main(arch *sys.Arch, theArch Arch) {
                        default:
                                *flagnewDoData = false
                        }
-               case ctxt.IsDarwin():
-                       if !ctxt.IsAMD64() {
-                               *flagnewDoData = false
-                       }
-               case ctxt.IsPlan9(), ctxt.IsWasm():
+               case ctxt.IsDarwin(), ctxt.IsPlan9(), ctxt.IsWasm():
                        // supported
                default:
                        *flagnewDoData = false