]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/ld: fix darwin/386
authorRuss Cox <rsc@golang.org>
Tue, 3 Mar 2015 15:47:15 +0000 (10:47 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 3 Mar 2015 15:49:11 +0000 (15:49 +0000)
grind's goto inliner moved a continue and changed its meaning. Oops.

Change-Id: Ifa2d3e1427036a606a069f356cd9b586ef22ec84
Reviewed-on: https://go-review.googlesource.com/6610
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/ld/ldmacho.go

index 58f065a306517c75357dbac23fa7a983c2178668..14e99233256a5adbf92321591a383609e296f053 100644 (file)
@@ -719,6 +719,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) {
                }
                r = make([]Reloc, sect.nreloc)
                rpi = 0
+       Reloc:
                for j = 0; uint32(j) < sect.nreloc; j++ {
                        rp = &r[rpi]
                        rel = &sect.rel[j]
@@ -806,7 +807,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) {
                                                // skip #1 of 2 rel; continue skips #2 of 2.
                                                j++
 
-                                               continue
+                                               continue Reloc
                                        }
                                }