diff --git a/src/cmd/link/internal/ld/pe.go b/src/cmd/link/internal/ld/pe.go index 549f7d19a5..2add05f67f 100644 --- a/src/cmd/link/internal/ld/pe.go +++ b/src/cmd/link/internal/ld/pe.go @@ -495,7 +495,7 @@ func (f *peFile) emitRelocations(ctxt *Link) { } for ri := 0; ri < len(sym.R); ri++ { r := &sym.R[ri] - if r.Done != 0 { + if r.Done { continue } if r.Xsym == nil {