Closed
Bug 675618
Opened 14 years ago
Closed 13 years ago
Crash during startup on ARM when linked with recent GNU ld
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
mozilla8
Tracking | Status | |
---|---|---|
firefox7 | --- | affected |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file, 1 obsolete file)
7.32 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Thanks to this GNU ld bug: http://sourceware.org/bugzilla/show_bug.cgi?id=13049 , building with a recent GNU ld (>= 2.21.1 are affected for sure, not sure about older ones ; 2.19 is definitely not affected) on ARM leads to a crash.
Assignee | ||
Comment 1•14 years ago
|
||
A workaround is to avoid using variables with a name starting with "stub".
js/src/jsdhash.cpp has the same variable name, but as it is compiled as C++, its name is mangled and thus doesn't start with "stub".
Attachment #549783 -
Flags: review?(benjamin)
Can we use gold for this?
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #2)
> Can we use gold for this?
It's not only a problem for us. It's a problem for those that use GNU ld on ARM.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → mh+mozilla
Comment 4•13 years ago
|
||
Comment on attachment 549783 [details] [diff] [review]
Work around recent ARM GNU ld bug with -fdata-sections and variables names starting with "stub" leading to crash
Since pldhash is jsdhash, can we just compile it as C++ and move on?
Assignee | ||
Comment 5•13 years ago
|
||
> Since pldhash is jsdhash, can we just compile it as C++ and move on?
We can.
Attachment #551473 -
Flags: review?(benjamin)
Assignee | ||
Updated•13 years ago
|
Attachment #549783 -
Attachment is obsolete: true
Attachment #549783 -
Flags: review?(benjamin)
Updated•13 years ago
|
Attachment #551473 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Whiteboard: [inbound]
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
Comment 8•13 years ago
|
||
For the record, this requires a clobber to build successfully, or else you'll get errors like:
> make[8]: *** No rule to make target `pldhash.c', needed by `pldhash.o'. Stop.
(noting here in case any devs / projec-branch-owners encounter this error and do a bugzilla search to see if it's reported anywhere)
Assignee | ||
Updated•13 years ago
|
Status: RESOLVED → REOPENED
status-firefox7:
--- → affected
Resolution: FIXED → ---
Version: Trunk → Other Branch
Assignee | ||
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
See Also: → https://launchpad.net/bugs/837685
See Also: → https://launchpad.net/bugs/838008
You need to log in
before you can comment on or make changes to this bug.
Description
•