--- jit/jit-apply-x86-64.h.orig	2008-11-23 19:40:58.000000000 +1100
+++ jit/jit-apply-x86-64.h	2010-09-01 01:40:38.000000000 +1000
@@ -137,7 +137,11 @@ _jit_classify_struct(jit_param_passing_t
 #if defined(__GNUC__)
 
 #ifndef	JIT_MEMCPY
+#ifdef __ELF__
 #define	JIT_MEMCPY	"jit_memcpy@PLT"
+#else
+#define	JIT_MEMCPY	"_jit_memcpy"
+#endif
 #endif
 
 /*
