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

Ian Lance Taylor ian@airs.com
Fri May 9 20:03:00 GMT 2003


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



More information about the Binutils mailing list