From 1fd140820382e826dfe460297dd9696b415bbc30 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 30 Apr 2019 10:31:19 -0700 Subject: [PATCH] runtime: fix data sizes for res_search results The return values are 32 bit, not 64 bit. I don't think this would be the cause of any problems, but it can't hurt to fix it. Change-Id: Icdd50606360ab9d74070271f9d1721d5fe640bc7 Reviewed-on: https://go-review.googlesource.com/c/go/+/174518 Run-TryBot: Keith Randall Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/runtime/lookup_darwin_amd64.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/lookup_darwin_amd64.s b/src/runtime/lookup_darwin_amd64.s index bfe70c2d01..3534a4fbc7 100644 --- a/src/runtime/lookup_darwin_amd64.s +++ b/src/runtime/lookup_darwin_amd64.s @@ -34,7 +34,7 @@ TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0 MOVLQSX (AX), DX // move return from libc_error into DX XORL AX, AX // size on error is 0 ok: - MOVQ AX, 28(BX) // size - MOVQ DX, 32(BX) // error code + MOVL AX, 28(BX) // size + MOVL DX, 32(BX) // error code POPQ BP RET -- 2.48.1