arm: use a local label instead of the function symbol in ff_prefetch_arm

Avoids a relocation which might end out of range for thumb2.

Reported-By: Ludovic Fauvet <etix@videolan.org>
Bug-Id: https://bugs.webkit.org/show_bug.cgi?id=137022
CC: libav-stable@libav.org
This commit is contained in:
Janne Grunau 2015-07-20 10:46:15 +02:00
parent f56d8d8dd7
commit 9ed6f9a17c
1 changed files with 2 additions and 1 deletions

View File

@ -23,9 +23,10 @@
#include "libavutil/arm/asm.S" #include "libavutil/arm/asm.S"
function ff_prefetch_arm, export=1 function ff_prefetch_arm, export=1
1:
subs r2, r2, #1 subs r2, r2, #1
pld [r0] pld [r0]
add r0, r0, r1 add r0, r0, r1
bne X(ff_prefetch_arm) bne 1b
bx lr bx lr
endfunc endfunc