[FFmpeg-trac] #4928(avcodec:new): Cannot load ffmpeg x86 build on Android 6.0 (Marshmallow) - libavcodec.so: has text relocations
FFmpeg
trac at avcodec.org
Wed Oct 14 16:36:45 CEST 2015
#4928: Cannot load ffmpeg x86 build on Android 6.0 (Marshmallow) - libavcodec.so:
has text relocations
---------------------------------+----------------------------------
Reporter: ioeir2 | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: 2.8.1
Keywords: android | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+----------------------------------
Summary of the bug:
Shared libraries libswscale.so, libavcodec.so, libswresample.so,
libswscale.so cannot be loaded on Android 6.0 device for x86 build due to
text relocations.
Android OS: 6.0.
Android NDK: r10e
GCC: 4.7
Issue is reproducible only on x86 build. No such issue on armv7-a or
x86_64 builds.
How to reproduce:
{{{
1. Compile libraries using attached script.
./build_ffmpeg.sh
2. Check for text relocations using NDK readelf executable.
./i686-linux-android-readelf -a libswscale.so | grep TEXTREL
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL BIND_NOW
./i686-linux-android-readelf -a libavcodec.so | grep TEXTREL
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL BIND_NOW
./i686-linux-android-readelf -a libavformat.so | grep TEXTREL
./i686-linux-android-readelf -a libswresample.so | grep TEXTREL
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL BIND_NOW
./i686-linux-android-readelf -a libavutil.so | grep TEXTREL
./i686-linux-android-readelf -a libswscale.so | grep TEXTREL
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) SYMBOLIC TEXTREL BIND_NOW
}}}
This means that libswscale.so, libavcodec.so, libswresample.so,
libswscale.so libraries have text relocations.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4928>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list