Closed Bug 675618 Opened 13 years ago Closed 13 years ago

Crash during startup on ARM when linked with recent GNU ld

Categories

(Core :: XPCOM, defect)

Other Branch
ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8
Tracking Status
firefox7 --- affected

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
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)
(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: nobody → mh+mozilla
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?
> Since pldhash is jsdhash, can we just compile it as C++ and move on?

We can.
Attachment #551473 - Flags: review?(benjamin)
Attachment #549783 - Attachment is obsolete: true
Attachment #549783 - Flags: review?(benjamin)
Attachment #551473 - Flags: review?(benjamin) → review+
http://hg.mozilla.org/mozilla-central/rev/3d20269baeee
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla8
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)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Version: Trunk → Other Branch
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: