From d900184d8d9f1363a52705f9a684f68e2fb589aa Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 8 Dec 2019 12:48:39 +0200 Subject: [PATCH] vendor: fix arm build for golang.org/x/sys/unix/zptrace_armnn_linux.go --- vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go index 8bcde8427..db5aced27 100644 --- a/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go +++ b/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go @@ -42,12 +42,12 @@ func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error { // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { - iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} + iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint32(unsafe.Sizeof(*regsout))} return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) } // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { - iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} + iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint32(unsafe.Sizeof(*regs))} return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) }