Q: gcc with binutils ld?

Tom Rix trix@redhat.com
Wed Aug 15 07:08:00 GMT 2001


In your spec file, under the heading 

*linker:
collect2

You could try a couple of things.  First collect2 is a gcc wrapper around the
true linker.  You may just have to set your envionment PATH to point to the new
gnu linker.  A risky thing to do would be to change "collect2" to
"/path_to_gnu_linker/ld"

collect2 has a verbose output setting.  If you want to see if it is finding the
correct linker when you can add 

-Xlinker -debug 

to a sample compile to see where the linker (and a lot of other stuff) is coming
from.

Tom 
-- 
Tom Rix 
GCC Engineer
trix@redhat.com
256.704.9201



More information about the Binutils mailing list