From: Alan Young <ayoung@teleport.com>
To: axp-list@redhat.com
Subject: Re: mozilla 1.3 rpms
Date: Tue, 18 Mar 2003 22:39:39 -0800 [thread overview]
Message-ID: <20030318223939.45181f5b.ayoung@teleport.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0303190103100.14122-100000@dhcp212139.library.emory.edu>
On Wed, 19 Mar 2003 01:04:11 -0500 (EST) Jiann-Ming Su <js290@bellsouth.net> wrote:
>
> I haven't tried that patch, I don't think. But, wouldn't that problem
> cause the code not to compile and link properly at all? The rpm builds
> I've been doing seem to complete successfully.
>
If you have not applied the patch mozilla will compile, but it will
not run correctly.
GCC 3.x changed the application binary interface (ABI) of the C++
symbols. It is not compatible with GCC 2.x ABI format.
Mozilla does it's own resolving of the C++ function labels in the
shared libraries that it loads. This is in the xpcom logic in
mozilla/xpcom/reflect/xptcall directories. Stock mozilla only
supports GCC 2.x. The assembler code in the xptcall directories
are setup for that. When a GCC 3.x compiled mozilla is run,
most things work until mozilla trys to resolve one of the new
format function names or if it trys to call a vtable function.
Since the vtable offset changed and/or the symbol is probably not
getting resolved correcty, a bad address is loaded by the assembler
code. Depending on where the address points to, mozilla may run
and just do nothing or it spontaneously crashes - in my experience
anyway. The patch adds logic to the assembler code code to
recognize these differences when mozilla is compiled with GCC 3.x.
Alan
next prev parent reply other threads:[~2003-03-19 6:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-16 1:09 Cheap hardware jon_on_alpha
2003-03-16 15:33 ` Iwao Makino
2003-03-16 16:03 ` Cheap hardware/clarification jon_on_alpha
2003-03-18 4:17 ` mozilla 1.3 rpms Jiann-Ming Su
2003-03-18 5:01 ` John Weez
2003-03-18 7:53 ` Alan Young
2003-03-19 6:04 ` Jiann-Ming Su
2003-03-19 6:39 ` Alan Young [this message]
2003-03-19 7:25 ` Jiann-Ming Su
2003-03-22 16:49 ` Jiann-Ming Su
2003-03-22 17:54 ` Alan Young
2003-03-23 0:03 ` Jiann-Ming Su
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox