rip-relative addressing in prologue.
+2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
+ rip-relative addressing in prologue.
+
2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
/* %rax contains now our new 'base'. */
mov RAX, RSI
-#ifdef __APPLE__
+#if defined (__APPLE__) && defined (__x86_64__)
+ leaq LOCAL(cont0) (%rip), RAX
+#elif defined (__APPLE__)
LOCAL(cont0_offset) = LOCAL(cont0) - LOCAL(base)
add $LOCAL(cont0_offset), RAX
#else