From e15221acece3ffeb7aaca9cf967f8ea7dac6e664 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 2 Mar 2015 00:16:16 -0500 Subject: [PATCH] cmd/9l: fix ppc64le build The conversion accidentally dropped the +4 here. Change-Id: Ic6181a759565c261bc1b084317f693ae249fd036 Reviewed-on: https://go-review.googlesource.com/6451 Reviewed-by: Russ Cox --- src/cmd/9l/asm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/9l/asm.go b/src/cmd/9l/asm.go index 3197f5170b..1b633ac449 100644 --- a/src/cmd/9l/asm.go +++ b/src/cmd/9l/asm.go @@ -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) } } } -- 2.48.1