This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] releases.html


On Feb 15, 2001, "Zack Weinberg" <zackw@Stanford.EDU> wrote:

> On Thu, Feb 15, 2001 at 04:26:05AM -0200, Alexandre Oliva wrote:

>> I don't remember for sure.  But there are compilers and linkers that
>> break if object files are not named foo.o.  IIRC, GCC is one of them,
>> on platforms in which collect2 must do anything non-trivial, such as
>> collecting info from object files.

> That shouldn't be too hard to fix.  I looked at collect2.c and the
> only problem I see is that the command-line parsing code knows what
> extensions object files might have

Yep.  It would just fail to collect information from some object
files.  The hard problem showed up with some other compiler.  I wish I
could remember which it was.  It would just refuse to link anything
that didn't have the right extension.  That's why libtool (as in the
GCC CVS tree and the multi-language branch of libtool CVS) creates
object files as foo.o and .libs/foo.o, using foo.lo as a script in
which information about the object file is stored.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]