comparison arm/asm.S @ 12504:036603a63c51 libavcodec

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.
author mru
date Mon, 20 Sep 2010 21:50:46 +0000
parents d6e87496883b
children
comparison
equal deleted inserted replaced
12503:3fff0806404a 12504:036603a63c51
60 ldr \rd, =\val 60 ldr \rd, =\val
61 #endif 61 #endif
62 .endm 62 .endm
63 63
64 .macro movrel rd, val 64 .macro movrel rd, val
65 #if HAVE_ARMV6T2 && !CONFIG_PIC 65 #if HAVE_ARMV6T2 && !CONFIG_PIC && !defined(__APPLE__)
66 movw \rd, #:lower16:\val 66 movw \rd, #:lower16:\val
67 movt \rd, #:upper16:\val 67 movt \rd, #:upper16:\val
68 #else 68 #else
69 ldr \rd, =\val 69 ldr \rd, =\val
70 #endif 70 #endif