]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/9l: fix ppc64le build
authorRuss Cox <rsc@golang.org>
Mon, 2 Mar 2015 05:16:16 +0000 (00:16 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 2 Mar 2015 05:17:39 +0000 (05:17 +0000)
The conversion accidentally dropped the +4 here.

Change-Id: Ic6181a759565c261bc1b084317f693ae249fd036
Reviewed-on: https://go-review.googlesource.com/6451
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/9l/asm.go

index 3197f5170b561277789fa2b18d83eaec278232d8..1b633ac44938e08b2c46556f30b1a1c768d8d5a8 100644 (file)
@@ -154,7 +154,7 @@ func gentext() {
                        // Restore TOC after bl.  The compiler put a
                        // nop here for us to overwrite.
                        o1 = 0xe8410018 // ld r2,24(r1)
-                       ld.Ctxt.Arch.ByteOrder.PutUint32(s.P[r.Off:], o1)
+                       ld.Ctxt.Arch.ByteOrder.PutUint32(s.P[r.Off+4:], o1)
                }
        }
 }