After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795190 - android x86_64 fails to link with possible overflows for relocations in custom assembly
android x86_64 fails to link with possible overflows for relocations in custo...
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal blocker
: 1.14.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 793303 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2018-04-12 08:04 UTC by Matthew Waters (ystreet00)
Modified: 2018-11-03 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Waters (ystreet00) 2018-04-12 08:04:13 UTC
Linking an android application including libav (e.g. the gstplayer android example) fails to link for x86_64 with the following error.

Compiling against v23 of the Android SDK with v26.0.2 of the build tools targeting android-15.

A quick look into fixing this involves fixing the assembly to be more PIC aware and use the appropriate ELF offset symbols/tables.

Log:

/home/matt/Projects/cerbero/build/android-ndk-r16/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: /home/matt/Projects/cerbero/build/dist/android_universal/x86_64/lib/libavcodec.a(simple_idct10.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_32' which may overflow at runtime; recompile with -fPIC
  /home/matt/Projects/cerbero/build/android-ndk-r16/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: /home/matt/Projects/cerbero/build/dist/android_universal/x86_64/lib/libavcodec.a(vc1dsp_loopfilter.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_5' which may overflow at runtime; recompile with -fPIC
  /home/matt/Projects/cerbero/build/android-ndk-r16/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: /home/matt/Projects/cerbero/build/dist/android_universal/x86_64/lib/libavcodec.a(vc1dsp_mc.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_9' which may overflow at runtime; recompile with -fPIC
  /home/matt/Projects/cerbero/build/android-ndk-r16/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: /home/matt/Projects/cerbero/build/dist/android_universal/x86_64/lib/libavcodec.a(vc1dsp_mmx.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_9' which may overflow at runtime; recompile with -fPIC
  /home/matt/Projects/cerbero/build/android-ndk-r16/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: /home/matt/Projects/cerbero/build/dist/android_universal/x86_64/lib/libavcodec.a(vc1dsp_mmx.o): requires dynamic R_X86_64_PC32 reloc against 'ff_pw_9' which may overflow at runtime; recompile with -fPIC

and 100 other symbols that follow the same pattern
Comment 1 Sebastian Dröge (slomo) 2018-04-18 11:26:57 UTC
*** Bug 793303 has been marked as a duplicate of this bug. ***
Comment 2 GStreamer system administrator 2018-11-03 12:58:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-libav/issues/37.