Commit 8995d349 authored by Mans Rullgard's avatar Mans Rullgard

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: 's avatarMans Rullgard <mans@mansr.com>
parent cdb7db5a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment