delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/19/11:48:27

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
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: <Pine.SUN.3.91.980319142900.26251D-100000@is>; from "Eli Zaretskii" at Mar 19, 98 2:29 pm
Reply-To: andrewc AT rosemail DOT rose DOT hp DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019