From: cgf AT cygnus DOT com (Christopher G. Faylor) Subject: Re: ld and microsoft libraries 2 May 1998 22:37:37 GMT Message-ID: <6ig77h$5n1$1@cronkite.cygnus.com> References: <199805010046 DOT RAA14849 DOT cygnus DOT gnu-win32 AT pacific DOT pgroup DOT com> <199805011630 DOT MAA09024 DOT cygnus DOT gnu-win32 AT tweedledumb DOT cygnus DOT com> X-Newsreader: trn 4.0-test63 (15 March 1998) In article <199805011630 DOT MAA09024 DOT cygnus DOT gnu-win32 AT tweedledumb DOT cygnus DOT com>, wrote: >I was not aware of that feature of comdat sections. I thought comdat >sections mainly worked to eliminate duplicate sections, which the GNU >linker does support. Does the MS linker really pull specific sections >out of an object file based on symbol references? I don't see any >reference to that in the PE documentation, although that doesn't mean >it doesn't happen. That would imply that the MS linker can treat an >object file like an archive. That's right. Microsoft has a compiler option for producing objects which can essentially be loaded "as a library". The linker will only load functions that are specifically referenced. -- cgf AT cygnus DOT com "Everything has a boolean value, if you stand http://www.cygnus.com/ far enough away from it." -- Galena Alyson Canada