diff options
author | Mans Rullgard <mans@mansr.com> | 2012-06-29 13:35:08 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-07-01 11:25:06 +0100 |
commit | 62634158b7cd39ad1e330a87153a97bf3dc6f8de (patch) | |
tree | 3b5bb36649f0e08a5675c474b29200c5f0b155b7 /libavcodec/arm/ac3dsp_armv6.S | |
parent | ceabc13f129cd6344b1eebdbe10119083fe5520e (diff) | |
download | ffmpeg-62634158b7cd39ad1e330a87153a97bf3dc6f8de.tar.gz |
ARM: generate position independent code to access data symbols
This creates proper position independent code when accessing
data symbols if CONFIG_PIC is set.
References to external symbols should now use the movrelx macro.
Some additional code changes are required since this macro may
need a register to hold the GOT pointer.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/arm/ac3dsp_armv6.S')
-rw-r--r-- | libavcodec/arm/ac3dsp_armv6.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/arm/ac3dsp_armv6.S b/libavcodec/arm/ac3dsp_armv6.S index 7e2f40edf0..f6f297a532 100644 --- a/libavcodec/arm/ac3dsp_armv6.S +++ b/libavcodec/arm/ac3dsp_armv6.S @@ -26,8 +26,8 @@ function ff_ac3_bit_alloc_calc_bap_armv6, export=1 beq 4f push {r4-r11,lr} add r5, sp, #40 - movrel r4, X(ff_ac3_bin_to_band_tab) - movrel lr, X(ff_ac3_band_start_tab) + movrelx r4, X(ff_ac3_bin_to_band_tab), r11 + movrelx lr, X(ff_ac3_band_start_tab) ldm r5, {r5-r7} ldrb r4, [r4, r2] add r1, r1, r2, lsl #1 @ psd + start |