Skip to content

Commit a628c74

Browse files
committed
Replace arm routines with stubs
Signed-off-by: grant <[email protected]>
1 parent b9747ec commit a628c74

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/net/lookup_darwin_arm.s

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#include "go_tls.h"
1111
#include "textflag.h"
1212

13+
// On darwin/arm, the runtime always use runtime/cgo
14+
// for resolution. This will just exit with nominal
15+
// exit code
16+
1317
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
14-
MOVW 16(R0). R4 // arg 5 anslen
15-
MOVW 12(R0), R3 // arg 4 answer
16-
MOVW 4(R0), R1 // arg 2 class
17-
MOVW 8(R0), R2 // arg 3 type
18-
MOVW 0(R0), R0 // arg 1 name
19-
BL libc_res_search
20-
RET
18+
MOVW $98, R0
19+
BL libc_exit(SB)
20+
RET

src/net/lookup_darwin_arm64.s

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
#include "go_tls.h"
77
#include "textflag.h"
88

9+
// On darwin/arm, the runtime always use runtime/cgo
10+
// for resolution. This will just exit with nominal
11+
// exit code
12+
913
TEXT runtime·res_search_trampoline(SB),NOSPLIT,$0
10-
SUB $16, RSP
11-
MOVW 24(R0), R4 // arg 5 anslen
12-
MOVD 16(R0), R3 // arg 4 answer
13-
MOVW 8(R0), R1 // arg 2 class
14-
MOVD 12(R0), R2 // arg 3 type
15-
MOVD 0(R0), R0 // arg 1 name
16-
BL libc_res_search(SB)
17-
RET
14+
MOVW $1, R0
15+
BL libc_exit(SB)
16+
RET

0 commit comments

Comments
 (0)