Discussion:
[Bug 742633] New: Android binaries have text relocations about which Android warns since 5.0
"GStreamer" (bugzilla.gnome.org)
2015-01-09 09:15:49 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git

Summary: Android binaries have text relocations about which
Android warns since 5.0
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: NEW
Severity: major
Priority: Normal
Component: cerbero
AssignedTo: gstreamer-***@lists.freedesktop.org
ReportedBy: ***@coaxion.net
QAContact: gstreamer-***@lists.freedesktop.org
GNOME version: ---
W/linker(16348): libgstreamer_android.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-09 20:35:30 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git

Stefan Sauer (gstreamer, gtkdoc dev) <ensonic> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@sonicpulse.de

--- Comment #1 from Stefan Sauer (gstreamer, gtkdoc dev) <***@sonicpulse.de> 2015-01-09 20:35:26 UTC ---
How is it built? Can you run eu-findtextrel (from the elfutils package) on it?
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-27 09:56:57 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git master

--- Comment #2 from Edward Hervey <***@bilboed.com> 2015-01-27 09:56:53 UTC ---
Created an attachment (id=295509)
--> (https://bugzilla.gnome.org/attachment.cgi?id=295509)
eu-findtextrel libs/armeabi/libgstreamer_android.so > android-textrel.txt
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-29 10:56:59 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git master

Edward Hervey <bilboed> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@bilboed.com

--- Comment #3 from Edward Hervey <***@bilboed.com> 2015-01-29 10:56:53 UTC ---
It's not just a warning, it will actually prevent the app from loading
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-29 10:57:57 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git master

Edward Hervey <bilboed> changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|Android binaries have text |Android binaries have text
|relocations about which |relocations. Prevents usage
|Android warns since 5.0 |on Android >= 5.0
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-29 11:00:24 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git master

--- Comment #4 from Sebastian Dröge (slomo) <***@coaxion.net> 2015-01-29 11:00:17 UTC ---
That probably depends on the device or version
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
"GStreamer" (bugzilla.gnome.org)
2015-01-29 11:25:48 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633
GStreamer | cerbero | git master

--- Comment #5 from Edward Hervey <***@bilboed.com> 2015-01-29 11:25:41 UTC ---
seems caused by libav. Removing it from the list of plugins used for the app
fixes the issue.

Maybe this fixes it completely ?
https://git.libav.org/?p=libav.git;a=commit;h=c00365b46d464ce47716315c1801818d811bdb9a
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
b***@gnome.org
2015-02-11 09:35:54 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #6 from Edward Hervey <***@bilboed.com> ---
x264 also introduces some text relocation also. Removing both x264 and libav
from list of plugins included results in a clean .so.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2015-11-20 22:02:22 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

***@free.fr changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@free.fr

--- Comment #7 from ***@free.fr ---
Hi guys,

is there a way to get rid of this message (without removing libav and x264
plugins) ?
The problem is that on Android platform since Android M libraries having text
relocation are not allowed anymore with apps targeting Android M.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2015-12-01 10:46:54 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #8 from Sebastian Dröge (slomo) <***@coaxion.net> ---
You would have to find a way to build libav and x264 without causing text
relocations. Someone will have to research on the Internet if someone else did
that already (I'm sure you'll find information about it), then fixup the code
and build system of both and provide the patches to the two projects. We can
then merge it here on our side.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-04-12 16:27:11 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #9 from Sebastian Dröge (slomo) <***@coaxion.net> ---
This is supposed to be fixed in ffmpeg upstream, Edward gave me this link
earlier:
https://github.com/FFmpeg/FFmpeg/commit/59cee42d7d22530e66a155305389e29679b11f78
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-04-18 11:34:57 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

Sebastian Dröge (slomo) <***@coaxion.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|git master |1.14.1
Severity|major |blocker
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-17 16:13:34 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

magtuz <***@mail.ru> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@mail.ru

--- Comment #10 from magtuz <***@mail.ru> ---
Hi guys, I got same problem , but only for android x86 arch -
/lib/x86/libgstreamer_android.so has text relocations.
Any advice how I can fix that (except solution with targetSdkVersion)?
(gstreamer-1.0-android-universal-1.14.4, NDK17)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-17 16:16:34 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #11 from magtuz <***@mail.ru> ---
Created attachment 373953
--> https://bugzilla.gnome.org/attachment.cgi?id=373953&action=edit
eu-findtextre result
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-18 14:20:01 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #12 from stic <***@free.fr> ---
Hi,

I confirm I have exact same issue, the "has text relocations" error is gone
with arm arch but unfortunately still occurs with X86 arch.
This is very annoying because as you may know Android apps have now to use a
targetSdkVersion >= 26.

Is there any easy fix to this ?

Thank you very much.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-10-25 17:38:04 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #13 from stic <***@free.fr> ---
Can you please threat it as important because this bug prevents apps from being
updated to Play Store, so that is really a problem.
Thank you.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-02 13:46:03 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #14 from stic <***@free.fr> ---
Is anyone looking at this please ?
It is now impossible (from November 1st) to publish to Google an Android app
embedded with Gstreamer on x86 arch because of this.
Thank you.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-02 13:52:18 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #15 from Sebastian Dröge (slomo) <***@coaxion.net> ---
First of all someone needs to figure out which libraries are the actual
problems here. It looks like ffmpeg, openh264 and possibly x264? Then someone
needs to fix *these* libraries and then we can import the new versions into our
builds.

Alternatively you could disable the plugins using those libraries.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-02 14:05:09 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #16 from stic <***@free.fr> ---
well I found that most of the errors were coming from openh264 plugin, but
there was still an error after removing it:
elf/aesni-x86.s not compiled with -fpic/-fPIC

I don't know how to avoid this one... do you think it is caused by a plugin ?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-02 14:11:52 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #17 from Sebastian Dröge (slomo) <***@coaxion.net> ---
That's from gnutls, used by the glib-networking TLS module. You could remove
that module, or one could probably change gnutls to not build with aesni
instruction support. Or update to a newer version of gnutls (a good idea
anyway) and hope the problem goes away.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-02 14:13:35 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #18 from Sebastian Dröge (slomo) <***@coaxion.net> ---
Unlikely that anything got fixed in newer versions:
https://github.com/gnutls/gnutls/commits/master/lib/accelerated/x86/elf/aesni-x86.s
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 10:18:19 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

GStreamer system administrator <***@gstreamer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |OBSOLETE

--- Comment #19 from GStreamer system administrator <***@gstreamer.net> ---
-- 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/cerbero/issues/8.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 22:20:57 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #20 from stic <***@free.fr> ---
I commented on gitlab but I am not sure participants are notified, did you
receive notification about it on gitlab ?
Can you please check comment at gitlab ?
Thanks.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-04 06:57:55 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #21 from Edward Hervey <***@bilboed.com> ---
There was a slight issue with cerbero (which was the test module for
migration). You can re-subscribe on the gitlab interface (the notifications
slider on the bottom right).
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-05 18:07:28 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=742633

--- Comment #22 from stic <***@free.fr> ---
Here is my comment made at gitlab, I am still not sure if someone was able to
see it:
***
I cannot get rid of the last error (elf/aesni-x86.s not compiled with
-fpic/-fPIC), I tried to disable glib-networking module by disabling
G_IO_MODULES := gnutls line from Android.mk, but the error is still there.
Is there another way to properly remove gnutls ?
Or could it be caused by another module/plugin ? (by the way I also tried to
remove libav)
Thanks.
***

Thanks for any help on this issue.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
Loading...