Commit 7bda4ed7 authored by Mans Rullgard's avatar Mans Rullgard

ARM: fix Thumb PIC on Apple

LDR with register offset and PC as base register is not available in
the Thumb instruction set so the addition must be done separately.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent 72d30b27
......@@ -141,7 +141,9 @@ ELF .size \name, . - \name
ldr \rd, .Lpicoff\@
.Lpic\@:
.if \indir
ldr \rd, [pc, \rd]
A ldr \rd, [pc, \rd]
T add \rd, pc
T ldr \rd, [\rd]
.else
add \rd, pc
.endif
......
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