summaryrefslogtreecommitdiff
path: root/libavutil/arm
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-09-20 22:55:11 +0100
committerMans Rullgard <mans@mansr.com>2012-09-21 07:07:58 +0100
commit8995d34972dc1092a5576c8d26e9b583f9dc2040 (patch)
tree54dc266e757a0e1c7d969be806bb6873162d3579 /libavutil/arm
parentcdb7db5acdefbb976e3004e87b8f0078d40d068f (diff)
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>
Diffstat (limited to 'libavutil/arm')
-rw-r--r--libavutil/arm/asm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S
index b30f9b1bbb..ce7f46d807 100644
--- a/libavutil/arm/asm.S
+++ b/libavutil/arm/asm.S
@@ -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