about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--arch/x32/reloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x32/reloc.h b/arch/x32/reloc.h
index 7c72d266..574f44a7 100644
--- a/arch/x32/reloc.h
+++ b/arch/x32/reloc.h
@@ -23,4 +23,4 @@
 #define REL_TPOFF       R_X86_64_TPOFF64
 
 #define CRTJMP(pc,sp) __asm__ __volatile__( \
-	"mov %1,%%esp ; jmp *%0" : : "r"(pc), "r"(sp) : "memory" )
+	"mov %1,%%esp ; jmp *%0" : : "r"((uint64_t)(uintptr_t)pc), "r"(sp) : "memory" )