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: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
72d30b2792
commit
7bda4ed780
@ -141,7 +141,9 @@ ELF .size \name, . - \name
|
|||||||
ldr \rd, .Lpicoff\@
|
ldr \rd, .Lpicoff\@
|
||||||
.Lpic\@:
|
.Lpic\@:
|
||||||
.if \indir
|
.if \indir
|
||||||
ldr \rd, [pc, \rd]
|
A ldr \rd, [pc, \rd]
|
||||||
|
T add \rd, pc
|
||||||
|
T ldr \rd, [\rd]
|
||||||
.else
|
.else
|
||||||
add \rd, pc
|
add \rd, pc
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user