This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Always link against static libgcc on hppa-linux
- From: Mark Mitchell <mark at codesourcery dot com>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, David Edelsohn <dje at watson dot ibm dot com>
- Cc: "rth at redhat dot com" <rth at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 14 Feb 2002 13:13:30 -0800
- Subject: Re: Always link against static libgcc on hppa-linux
> As a relatively new port, I don't believe we should bother fixing
> 3.0.x for it.
Fine; that resolves things for GCC 3.0.4. I will make a prerelease
tarball shortly.
We still need to figure out what to do for 3.1.
The issues with linking libgcc twice are only partly about code; even
more important is data. There is global data in libgcc that must be
present exactly once in the final executable.
It seems that there are a lot of possibilities available:
- Richard Henderson points out that you may be able to make libc
contain these routines.
- I suggested that you could make crt*.o contain these routines.
- David suggested you could use a separate library.
I think Richard's suggestion is probably best, but failing that
neither of the other two should be horribly difficult.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com