[dev.link] cmd/link: convert asmb2 pass to new style on windows

Now we no longer do loadlibfull on windows.

Change-Id: Ideb015597c28f27538bd50829e089ea728017162
Reviewed-on: https://go-review.googlesource.com/c/go/+/232979
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Cherry Zhang 2020-05-07 22:22:54 -04:00
parent fee06a6bda
commit fdb9249d82
7 changed files with 177 additions and 133 deletions

View file

@ -692,6 +692,8 @@ func (l *Loader) SymVersion(i Sym) int {
return int(abiToVer(r.Sym(li).ABI(), r.version))
}
func (l *Loader) IsFileLocal(i Sym) bool { return l.SymVersion(i) >= sym.SymVerStatic }
// Returns the type of the i-th symbol.
func (l *Loader) SymType(i Sym) sym.SymKind {
if l.IsExternal(i) {