This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: i386-netware-ld target for Netware NLM files with C++ support
- From: Ian Lance Taylor <ian at airs dot com>
- To: Bernd Herd <info at herdsoft dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 09 May 2003 13:03:51 -0700
- Subject: Re: i386-netware-ld target for Netware NLM files with C++ support
- References: <3EA18726.509@t-online.de> <m3u1cmpv6l.fsf@localhost.localdomain><3EB8C9BB.7090607@herdsoft.com> <m3of2ek7ht.fsf@gossamer.airs.com><3EB9475E.3070800@herdsoft.com> <m3u1c6hb1p.fsf@gossamer.airs.com><3EBBFF24.8060008@herdsoft.com>
Bernd Herd <info@herdsoft.com> writes:
> Setting LINKER_NAME did exactly what I wanted. UNtil now it called
> collect2 and I thought it would neet collect2, but static constructors
> also work without collect2, obviously collect2 is not needed with a
> GNU ld linker.
>
> But why is my debian linux box also calling collect2 when linking
> native ELF programs, then?
I think it's only to support the C++ -frepo option.
See this thread:
http://gcc.gnu.org/ml/gcc/1998-02/msg00974.html
and in particular
http://gcc.gnu.org/ml/gcc/1998-02/msg01020.html
http://gcc.gnu.org/ml/gcc/1998-02/msg01045.html
If you don't use the -frepo option, you shouldn't need to use collect2
when using ELF and GNU ld.
Ian