File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 10
10
#include "go_tls.h"
11
11
#include "textflag.h"
12
12
13
+ // On darwin/arm, the runtime always use runtime/cgo
14
+ // for resolution. This will just exit with nominal
15
+ // exit code
16
+
13
17
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
Original file line number Diff line number Diff line change 6
6
#include "go_tls.h"
7
7
#include "textflag.h"
8
8
9
+ // On darwin/arm, the runtime always use runtime/cgo
10
+ // for resolution. This will just exit with nominal
11
+ // exit code
12
+
9
13
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
You can’t perform that action at this time.
0 commit comments