This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i386-netware-ld target for Netware NLM files with C++ support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]