Change-Id: I3d64549b85b71bb63bcc815ce2276af6ca2eb215
Reviewed-on: https://go-review.googlesource.com/29354
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
        "io/ioutil"
        "os"
        "path"
+       "path/filepath"
        "strconv"
        "strings"
 )
 
        var pname string
        isshlib := false
-       if (ctxt.Windows == 0 && strings.HasPrefix(name, "/")) || (ctxt.Windows != 0 && len(name) >= 2 && name[1] == ':') {
+       if filepath.IsAbs(name) {
                pname = name
        } else {
                // try dot, -L "libdir", and then goroot.
 
        Arch      *sys.Arch
        Debugvlog int
        Bso       *bufio.Writer
-       Windows   int32
 
        Loaded bool // set after all inputs have been loaded as symbols