Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 1998 19:10:35 -0500 (EST)
From:      Alfred Perlstein <bright@hotjobs.com>
To:        John Birrell <jb@cimlogic.com.au>
Cc:        sparc@FreeBSD.ORG
Subject:   crt0.o (was) Re: Huzzah!
Message-ID:  <Pine.BSF.4.05.9811281858420.1605-100000@bright.fx.genx.net>
In-Reply-To: <199811282344.KAA26555@cimlogic.com.au>

index | next in thread | previous in thread | raw e-mail


> Alfred Perlstein wrote:
> > I do have a concern, it seems that linking requires a crt0.o, why is this?
> > I know crt0.o is the "startup code" for the programs, but for some reason
> > i thought elf makes it unnessesary?  Or do our ELF utils automagically
> > attach the file?
> 
> On elf, we use crt1.o for both i386 and alpha. This is set in the specs
> that gcc is compiled with. FreeBSD/Sparc64 should be (configured to be)
> consistent. The crt code is definitely required. That's where the user-space
> program initialisation is performed (e.g. C++ constructors). It's also
> the object that contains the global variable __sF[] for stdin, stdout
> and stderr.

ok, this i understand, i'm going to change the STARTFILE_SPEC to match the
one in FreeBSD has in src/contrib/gcc/config/i386/freebsd.h and recompile,
this should fix it i hope.

do you know of a document on the way we want it to work?  something along
the lines of documentation on ABI, but more of a style(9), but not in
terms of look of code, but how code should be generated?
Yes i know that made almost no sense, but i hope you understand what i'm
asking.  Or is it all UTSL?

thanks,
-Alfred

> 
> -- 
> John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
> CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811281858420.1605-100000>