How to remove dependency on order of objs supplied to ld, for finding functions?

Stuart Summerville (NEC) stuarts@icpdd.neca.nec.com.au
Wed Dec 15 23:41:00 GMT 1999


Hi there,

So far as I can tell, the order in which archive files are supplied to ld
seems to affect whether ld finds functions within each archive. On occasion
I have to re-order the list supplied to ld, in order for ld to find some
functions.

Any way of telling ld to load in all such files *before* final linking?
Couldn't see anything appropriate in the manpage or online docs.

My ld is V2.8.1, gcc is 2.91.57.

Thanks, sTu.

_________________________________________________________________________
Stuart Summerville                         NEC Australia Pty. Ltd.
ph: (+61 3) 9264-3090                      Integrated Comm Products (R&D)
fax:(+61 3) 9264-3841                      649-655 Springvale Road
e-mail: stuarts@icpdd.neca.nec.com.au      Mulgrave, VIC 3170, AUSTRALIA



More information about the Gcc-help mailing list