[Bug 795190] New: android x86_64 fails to link with possible overflows for relocations in custom assembly
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Apr 12 08:04:13 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=795190
Bug ID: 795190
Summary: android x86_64 fails to link with possible overflows
for relocations in custom assembly
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-libav
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: ystreet00 at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
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
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list