tlv_thunk_stub.c (778B)
1 /* Stub `kit_jit_tlv_thunk` for non-aarch64 hosts. The asm version 2 * lives in tlv_thunk_aarch64.S; on hosts that can't run the JIT image's 3 * Mach-O code anyway (the JIT runs in-process, so target arch must 4 * equal host arch), the symbol exists only so taking its address in 5 * src/link/link_jit.c links cleanly. */ 6 7 #include "jit/tlv_thunk.h" 8 9 #if !defined(__aarch64__) 10 11 void kit_jit_tlv_thunk(void) { 12 /* Reachable only if a non-aarch64 host somehow attempted to JIT an 13 * aarch64 Mach-O image with TLVs — should have been rejected long 14 * before any access reaches the thunk. */ 15 __builtin_trap(); 16 } 17 18 #else 19 20 /* Real implementation lives in tlv_thunk_aarch64.S; keep the TU 21 * non-empty for -Wempty-translation-unit. */ 22 extern void kit_jit_tlv_thunk(void); 23 24 #endif