]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: set HeadType early
authorCherry Zhang <cherryyz@google.com>
Fri, 24 Apr 2020 16:13:11 +0000 (12:13 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 24 Apr 2020 16:58:37 +0000 (16:58 +0000)
commitf2d8da1a353b493548e211b06fdf47bd998ad4b6
treeb707f002054aa52151a5bf1ea61f5576a1138754
parentf790533d9ffd6d50c8efccf8f8edac0ef76b3da4
[dev.link] cmd/link: set HeadType early

So we can use it to set per-OS flags.

Also set flagnewDoData after archinit, where IsELF is set.

This should correct the logic of setting flagnewDoData.

Change-Id: I18c7252f141aa35119005c252becc9d7cb74f2f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/229867
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