Closed
Bug 956398
Opened 10 years ago
Closed 10 years ago
Support text relocations for Flash
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox27 verified, firefox28 verified, firefox29 verified, fennec29+)
VERIFIED
FIXED
Firefox 29
People
(Reporter: snorp, Assigned: glandium)
References
Details
Attachments
(3 files, 1 obsolete file)
6.22 KB,
patch
|
froydnj
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
9.92 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
2.04 KB,
patch
|
froydnj
:
review+
bajaj
:
approval-mozilla-aurora+
bajaj
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
In order to to load Flash on 4.4, we need to stub out some missing symbols. For that to work, we have to use our customer linker instead of the Android one. Right now it falls back to the Android linker because we don't support text relocations.
Updated•10 years ago
|
tracking-fennec: --- → ?
Assignee | ||
Comment 1•10 years ago
|
||
Can you test whether this actually works? At least, it builds and doesn't break anything on try.
Assignee | ||
Comment 2•10 years ago
|
||
Note this in itself is not enough for landing, I need to add a build check to make builds fail when there are text relocations.
Assignee | ||
Comment 3•10 years ago
|
||
Fixed up alignment and removed leftovers from an earlier attempt.
Assignee | ||
Updated•10 years ago
|
Attachment #8356988 -
Attachment is obsolete: true
Reporter | ||
Comment 4•10 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #2) > Note this in itself is not enough for landing, I need to add a build check > to make builds fail when there are text relocations. Because you don't want any of that in libxul? Maybe enough to have a runtime abort just for a couple libraries? I'll test your patch here with my other stuff in a bit.
Reporter | ||
Comment 5•10 years ago
|
||
Patch works here
Assignee | ||
Updated•10 years ago
|
Attachment #8356996 -
Flags: review?(nfroyd)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8357474 -
Flags: review?(ted)
Comment 7•10 years ago
|
||
Comment on attachment 8356996 [details] [diff] [review] Support text relocations in the custom linker Review of attachment 8356996 [details] [diff] [review]: ----------------------------------------------------------------- No comment on the need for this.
Attachment #8356996 -
Flags: review?(nfroyd) → review+
Updated•10 years ago
|
tracking-fennec: ? → 29+
Comment 8•10 years ago
|
||
Comment on attachment 8357474 [details] [diff] [review] Error out at build time if we end up with text relocations Review of attachment 8357474 [details] [diff] [review]: ----------------------------------------------------------------- ::: config/config.mk @@ +841,5 @@ > endif > endif > > +ifeq (,$(filter $(OS_TARGET),WINNT Darwin OS2)) > +CHECK_TEXTREL = @$(TOOLCHAIN_PREFIX)readelf -d $(1) | grep TEXTREL > /dev/null && echo 'TEST-UNEXPECTED-FAIL | | We do not want text relocations in libraries and programs' || true Can you stick a test name in the empty | | space here and above? Even just "checkcxx / checktextrelocations" for these would be fine.
Attachment #8357474 -
Flags: review?(ted) → review+
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dec061c862ff https://hg.mozilla.org/integration/mozilla-inbound/rev/89a7d761a82f
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dec061c862ff https://hg.mozilla.org/mozilla-central/rev/89a7d761a82f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Reporter | ||
Comment 11•10 years ago
|
||
Comment on attachment 8356996 [details] [diff] [review] Support text relocations in the custom linker [Approval Request Comment] Bug caused by (feature/regressing bug #): 935676 User impact if declined: Flash doesn't work on KitKat Testing completed (on m-c, etc.): m-c Risk to taking this patch (and alternatives if risky): ? String or IDL/UUID changes made by this patch: None
Attachment #8356996 -
Flags: approval-mozilla-beta?
Attachment #8356996 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 12•10 years ago
|
||
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #11) > Risk to taking this patch (and alternatives if risky): ? The patch is essentially a noop for libraries without text relocations, which is the majority of them. However, it does changes how libraries with text relocations are loaded, in that they are now loaded by our linker instead of the system linker. This might actually cause unexpected problems.
Comment 13•10 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #12) > (In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #11) > > Risk to taking this patch (and alternatives if risky): ? > > The patch is essentially a noop for libraries without text relocations, > which is the majority of them. However, it does changes how libraries with > text relocations are loaded, in that they are now loaded by our linker > instead of the system linker. This might actually cause unexpected problems. To mitigate risk, can we uplift a patch which whitelists libflashplayer.so to be loaded by our linker and kick anything else that needs text relocations out to the system linker?
Assignee | ||
Comment 14•10 years ago
|
||
Risk mitigation, cf. comment 13.
Attachment #8363444 -
Flags: review?(nfroyd)
Assignee | ||
Updated•10 years ago
|
Attachment #8357474 -
Attachment is obsolete: true
Comment 15•10 years ago
|
||
Comment on attachment 8363444 [details] [diff] [review] Only support text relocations for libflashplayer.so Review of attachment 8363444 [details] [diff] [review]: ----------------------------------------------------------------- Assuming this is meant to be applied on top of the existing patch for aurora/beta uplift, r=me.
Attachment #8363444 -
Flags: review?(nfroyd) → review+
Updated•10 years ago
|
Attachment #8356996 -
Flags: approval-mozilla-beta?
Attachment #8356996 -
Flags: approval-mozilla-aurora?
Comment 16•10 years ago
|
||
Comment on attachment 8356996 [details] [diff] [review] Support text relocations in the custom linker We need both patches on Aurora and Beta
Attachment #8356996 -
Flags: approval-mozilla-beta?
Attachment #8356996 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8363444 -
Flags: approval-mozilla-beta?
Attachment #8363444 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8356996 -
Flags: approval-mozilla-beta?
Attachment #8356996 -
Flags: approval-mozilla-beta+
Attachment #8356996 -
Flags: approval-mozilla-aurora?
Attachment #8356996 -
Flags: approval-mozilla-aurora+
Comment 17•10 years ago
|
||
Comment on attachment 8363444 [details] [diff] [review] Only support text relocations for libflashplayer.so Reqesting QA verification on a try build or trunk before we take this into beta.
Attachment #8363444 -
Flags: approval-mozilla-beta?
Attachment #8363444 -
Flags: approval-mozilla-beta+
Attachment #8363444 -
Flags: approval-mozilla-aurora?
Attachment #8363444 -
Flags: approval-mozilla-aurora+
Comment 18•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/a57e9a4224f2 https://hg.mozilla.org/releases/mozilla-aurora/rev/37f5ef8394b1 https://hg.mozilla.org/releases/mozilla-beta/rev/214cc3bf9469 https://hg.mozilla.org/releases/mozilla-beta/rev/9294d16ada62
Comment 19•10 years ago
|
||
And a follow-up for check-sync-dirs bustage. https://hg.mozilla.org/releases/mozilla-aurora/rev/ac213f3a5bf9 https://hg.mozilla.org/releases/mozilla-beta/rev/cd615489ee57
Reporter | ||
Comment 20•10 years ago
|
||
QA: if you can view the Flash content at http://people.mozilla.org/~jwillcox/flash/flash_test.html, then this patch (and others) are working.
Updated•10 years ago
|
Assignee | ||
Updated•10 years ago
|
Attachment #8357474 -
Attachment is obsolete: false
Assignee | ||
Comment 21•10 years ago
|
||
(In reply to bhavana bajaj [:bajaj] from comment #17) > Comment on attachment 8363444 [details] [diff] [review] > Only support text relocations for libflashplayer.so > > Reqesting QA verification on a try build or trunk before we take this into > beta. Here's a try build for QA verification of that latter patch: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/mh@glandium.org-9b97ea6ff4f9/try-android/fennec-29.0a1.en-US.android-arm.apk
Comment 22•10 years ago
|
||
Verified fixed using Nexus 4 (Android 4.4.2) on: 27.0 Beta 9 (2014-01-24) Aurora 28.0a2 (2014-01-23)
Assignee | ||
Comment 23•10 years ago
|
||
(In reply to Paul Feher from comment #22) > Verified fixed using Nexus 4 (Android 4.4.2) on: > 27.0 Beta 9 (2014-01-24) > Aurora 28.0a2 (2014-01-23) Please also test the try build from comment 21.
Comment 24•10 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #23) > (In reply to Paul Feher from comment #22) > > Verified fixed using Nexus 4 (Android 4.4.2) on: > > 27.0 Beta 9 (2014-01-24) > > Aurora 28.0a2 (2014-01-23) > > Please also test the try build from comment 21. Verified fixed using the try build on Nexus 4 (Android 4.4.2)
Assignee | ||
Comment 25•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/67b10879f654 Ryan, can you land this on aurora and beta? (cf. a+, comment 17, comment 21 and comment 24)
Flags: needinfo?(ryanvm)
Comment 26•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/4b8d14a78596 https://hg.mozilla.org/releases/mozilla-beta/rev/4b33a0699faa
Updated•10 years ago
|
Flags: needinfo?(ryanvm)
Assignee | ||
Comment 28•10 years ago
|
||
Can this be re-verified on aurora and beta after the landing of the last piece?
Comment 29•10 years ago
|
||
The flash content is flickering on Google Nexus 5 (Android 4.4.2). Tested on 28 Beta 2 and 29.0a2 (2014-02-11).
Comment 30•10 years ago
|
||
Please open a new bug.
Comment 31•10 years ago
|
||
Based on Paul's comment 22 I will mark this bug as verified fixed.
Status: RESOLVED → VERIFIED
Keywords: verifyme
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•