]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: make it compile again (fixes build)
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 29 Aug 2017 02:21:15 +0000 (12:21 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 29 Aug 2017 02:36:27 +0000 (02:36 +0000)
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>
src/cmd/link/internal/ld/pe.go

index 549f7d19a543cfec9235abafa6da9fb871146bb2..2add05f67f0f8324be1c68220f8fe2798f90b9b9 100644 (file)
@@ -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 {