[FFmpeg-devel] [PATCH] swresample/arm: avoid conditional branch to PLT in THUMB-2.

Rahul Chaudhry rahulchaudhry at chromium.org
Fri Apr 13 23:43:44 EEST 2018


When compiling for THUMB-2, the conditional branch to PLT results in a
R_ARM_THM_JUMP19 relocation. Some linkers don't support this relocation
in THUMB-2 (ld.gold), while others can end up truncating the relocation
to fit (ld.bfd).

Adding an "it eq" before the branch converts it into an unconditional
branch, which uses R_ARM_THM_JUMP24 relocation that has a range of 16MB.

See https://github.com/android-ndk/ndk/issues/337 for background.

The current workaround is to disable neon during gstreamer build,
which is not optimal and can be reverted after this patch.

Rahul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-swresample-arm-avoid-conditional-branch-to-PLT-in-TH.patch
Type: text/x-patch
Size: 1313 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180413/28a8a162/attachment.bin>


More information about the ffmpeg-devel mailing list