Fix building mono with icc
[mono.git] / mono / utils / mono-context.h
index a4d29461ca6251a4921961b679e03991ebedca3d..8c813453f6ee4f83c2467219903504b3dc30e4df 100755 (executable)
@@ -222,7 +222,8 @@ typedef struct {
                "movq %%r13, 0x68(%0)\n"        \
                "movq %%r14, 0x70(%0)\n"        \
                "movq %%r15, 0x78(%0)\n"        \
-               "leaq (%%rip), %%rdx\n" \
+               /* "leaq (%%rip), %%rdx\n" is not understood by icc */  \
+               ".byte 0x48, 0x8d, 0x15, 0x00, 0x00, 0x00, 0x00\n" \
                "movq %%rdx, 0x80(%0)\n"        \
                :       \
                : "a" (&(ctx))  \