This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking against libgcc.a on GNU/Linux
* Joseph Myers:
> On Wed, 13 Mar 2019, Florian Weimer wrote:
>
>> Would it be possible to turn libgcc_s.so into a linker script that links
>> against libgcc.a and libgcc_s.so.1, and teach g++ not to link against
>> libgcc.a explicitly anymore?
>
> It is already a linker script on platforms using t-slibgcc-libgcc in
> libgcc/config.host.
Hmm. I assume this means that x86-64 and i386 should use this approach,
but they currently do not (GCC 8/9 in Fedora):
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88805#c5>
Thanks,
Florian