Commit 91e7ca58 authored by Russ Cox's avatar Russ Cox

cmd/internal/ld: fix darwin/386

grind's goto inliner moved a continue and changed its meaning. Oops.

Change-Id: Ifa2d3e1427036a606a069f356cd9b586ef22ec84
Reviewed-on: https://go-review.googlesource.com/6610Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent b50ff580
...@@ -719,6 +719,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) { ...@@ -719,6 +719,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) {
} }
r = make([]Reloc, sect.nreloc) r = make([]Reloc, sect.nreloc)
rpi = 0 rpi = 0
Reloc:
for j = 0; uint32(j) < sect.nreloc; j++ { for j = 0; uint32(j) < sect.nreloc; j++ {
rp = &r[rpi] rp = &r[rpi]
rel = &sect.rel[j] rel = &sect.rel[j]
...@@ -806,7 +807,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) { ...@@ -806,7 +807,7 @@ func ldmacho(f *Biobuf, pkg string, length int64, pn string) {
// skip #1 of 2 rel; continue skips #2 of 2. // skip #1 of 2 rel; continue skips #2 of 2.
j++ j++
continue continue Reloc
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment