Skip to content

Commit 27f2777

Browse files
committed
Fix aarch64 build
1 parent 538ce33 commit 27f2777

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/runtime/clone.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,9 @@ int sys_clone_linux(int flags, // rdi
538538

539539
dontinstrument static int AmdLinuxThreadEntry(void *arg) {
540540
struct LinuxCloneArgs *wt = arg;
541+
#if defined(__x86_64__)
541542
sys_set_tls(ARCH_SET_GS, wt->tls);
543+
#endif
542544
return wt->func(wt->arg);
543545
}
544546

0 commit comments

Comments
 (0)