# HG changeset patch # User mru # Date 1285019446 0 # Node ID 036603a63c51b4c2e0b22d19a1e8d03e145dde35 # Parent 3fff0806404ac3938141363efb36fe7dc35c01a8 ARM: disable movw/movt for relocated values on Apple platforms Apparently Apple platforms do not handle movw/movt relocations properly, leading to runtime crashes in code using them. diff -r 3fff0806404a -r 036603a63c51 arm/asm.S --- a/arm/asm.S Mon Sep 20 11:34:27 2010 +0000 +++ b/arm/asm.S Mon Sep 20 21:50:46 2010 +0000 @@ -62,7 +62,7 @@ .endm .macro movrel rd, val -#if HAVE_ARMV6T2 && !CONFIG_PIC +#if HAVE_ARMV6T2 && !CONFIG_PIC && !defined(__APPLE__) movw \rd, #:lower16:\val movt \rd, #:upper16:\val #else