ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC code

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>
release/1.0
Mans Rullgard 12 years ago
parent cdb7db5acd
commit 8995d34972
  1. 2
      libavutil/arm/asm.S

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

Loading…
Cancel
Save