From: Andrew Crabtree Message-Id: <199803191647.AA253106078@typhoon.rose.hp.com> Subject: Re: Bugs in 2.8.0? To: eliz AT is DOT elta DOT co DOT il (Eli Zaretskii) Date: Thu, 19 Mar 1998 8:47:58 PST Cc: andrewc AT rosemail DOT rose DOT hp DOT com, robert DOT hoehne AT gmx DOT net, djgpp-workers AT delorie DOT com In-Reply-To: ; from "Eli Zaretskii" at Mar 19, 98 2:29 pm Reply-To: andrewc AT rosemail DOT rose DOT hp DOT com Precedence: bulk > On Wed, 18 Mar 1998, Andrew Crabtree wrote: > > > Also, don't we need crt0.o to be the first one of the two? > > I didn't think that the order of .o files mattered on the link line. > Of course the order matters. `ld' is a one-pass linker, remember? Right - but I was under the impression that you only had to be careful with library files. For object files, as long as they come before any of the libraries, order should be irrelevant. Order of the libraries (-lgcc -lc -lgcc for example), or placing object files after libraries on the link line will cause problems, but just shuffling object files in a group should be ok.