public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld resulting long command line arguments when calling collect2 workaround
@ 2004-04-07 23:13 J. Grant
  2004-04-07 23:20 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: J. Grant @ 2004-04-07 23:13 UTC (permalink / raw)
  To: binutils

Hello,

I think this is a binutils query, as it relates to ld calling collect2.
collect2 is part of gcc I noticed, so if this is a query for gcc please
let me know.

I am using an old ld v2.12 compiled on cygwin/ms-windows.  When
linking my c++ app, with g++, I have many objects.  I put all the
objects in a file and then use @make.objects to get them in-to the link
command.  If i specify them on the g++ command line when linking it
complains about a too long command line.

However, the problem is that ld/g++ seems to "expand" the @make.objects
file and pass all the filenames to the objects again on the command line
to collect2 (which appears to do the final linking and creation of elf
etc).  collect2 has the same problem with command line argument limit

Could someone tell me if there is a workaround to get ld/gcc/collect2 to
receive the make.objects file containing the list of objects please?

The other idea I had was to put all the objects in several smaller libs,
and then link those resulting libs.  However this is causing link
problems (some code seems to go missing, so I wanted to try linking all
the objects at the same time).

Any help appreciated.

Kind regards

JG


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-08 17:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 23:13 ld resulting long command line arguments when calling collect2 workaround J. Grant
2004-04-07 23:20 ` Ian Lance Taylor
2004-04-08 13:09   ` Dave Korn
2004-04-08 17:46     ` Dave Korn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).