This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] 3.2: Fixup symbol versioning mistake on powerpc-linux-gnu
On Mon, Aug 05, 2002 at 08:42:35PM +0200, Franz Sirl wrote:
> You would be right in an ideal world, but I've already seen this in the wild,
> mostly with with really complex apps like OpenOffice depending on other
> complex apps like mozilla. The problem is that glibc also exports these 4
> symbols with link-time reference (fixing that will be a follow-up patch) and
IMHO its just PPC which should not export it, IA-32 and others
always exported this and it is not causing problems there.
> there are still a bunch of apps that manually link shared libs with -lc -lgcc
> (like openssl, KDE, mozilla, etcetc) instead of -lgcc -lc -lgcc or using gcc
> to link.
Apps using ld -shared instead of gcc -shared and g++ -shared need to
be fixed, not workarounds added so that they can stay being broken some
more time.
> That caused an undefined reference for __divdi3@GLIBC_2.0 when
> running on a gcc2 compiled glibc, even though libgcc_s.so was delivered with
> the app.
> Now you could argue "this only happens during the transition", but history
> shows us that things like that will bite us again and again :-).
I still think it is enough just to change glibc.
Jakub