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) } } }