From 8995d34972dc1092a5576c8d26e9b583f9dc2040 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 20 Sep 2012 22:55:11 +0100 Subject: 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 --- libavutil/arm/asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil/arm/asm.S') 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 -- cgit v1.2.3