1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:24:46 -07:00

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 <gobot@golang.org>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
Alex Brainman 2017-08-29 12:21:15 +10:00
parent 29d11ef436
commit b7397c8100

View File

@ -495,7 +495,7 @@ func (f *peFile) emitRelocations(ctxt *Link) {
} }
for ri := 0; ri < len(sym.R); ri++ { for ri := 0; ri < len(sym.R); ri++ {
r := &sym.R[ri] r := &sym.R[ri]
if r.Done != 0 { if r.Done {
continue continue
} }
if r.Xsym == nil { if r.Xsym == nil {