Mail Archives: djgpp-workers/1998/03/19/11:48:27
> 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.
- Raw text -