OSDN Git Service

ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code
authorMans Rullgard <mans@mansr.com>
Thu, 20 Sep 2012 21:55:11 +0000 (22:55 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 21 Sep 2012 06:07:58 +0000 (07:07 +0100)
The Apple assembler refuses to assemble the 3-operand form
in Thumb2 even though it is valid syntax.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/arm/asm.S

index b30f9b1..ce7f46d 100644 (file)
@@ -143,7 +143,7 @@ ELF     .size   \name, . - \name
     .if \indir
         ldr             \rd, [pc, \rd]
     .else
-        add             \rd, \rd, pc
+        add             \rd, pc
     .endif
         def_pic         \val - (.Lpic\@ + (8 >> CONFIG_THUMB)), .Lpicoff\@
 .endm