Browse Source

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>
tags/n1.1
Mans Rullgard 13 years ago
parent
commit
7bda4ed780
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavutil/arm/asm.S

+ 3
- 1
libavutil/arm/asm.S View File

@@ -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


Loading…
Cancel
Save