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: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: rth at redhat dot com (Richard Henderson)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 5 Feb 2002 02:13:49 -0500 (EST)
- Subject: Re: Always link against static libgcc on hppa-linux
> > If it's being pulled from "-Wl,-A" for some platform, I would
> > consider it a bug.
>
> Likely. But given the context in which it is used to
> suppress libraries, incremental linking appears to be
> the correct answer.
Then, the tests on "A" in LINK_COMMAND_SPEC are not relevant to hppa
linux and standard gnu ld.
I've thought some more about the position of "-lgcc" in the link spec.
I don't like putting it in the ENDFILE_SPEC because it depends on
"!nostartfiles" which seems wrong. However, I've got the define
for LINK_COMMAND_SPEC in the wrong file. It should be in pa-linux.h.
I suppose a linker script could be used but that seems like overkill
and something else to install.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)