From b7397c81006457b15e99a7898f69a2b3f6636a82 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Tue, 29 Aug 2017 12:21:15 +1000 Subject: [PATCH] cmd/link: make it compile again (fixes build) CL 59375 changed Reloc.Done to bool, but that change got lost in pe.go while merging. Restore that change. Change-Id: Ie5a89e85579cdc9282f504fefd56355cfeb49389 Reviewed-on: https://go-review.googlesource.com/59711 TryBot-Result: Gobot Gobot Reviewed-by: Alex Brainman --- src/cmd/link/internal/ld/pe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {