Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 10:44:35 +1100 (EST)
From:      John Birrell  <jb@cimlogic.com.au>
To:        bright@hotjobs.com (Alfred Perlstein)
Cc:        sparc@FreeBSD.ORG
Subject:   Re: Huzzah!
Message-ID:  <199811282344.KAA26555@cimlogic.com.au>
In-Reply-To: <Pine.BSF.4.05.9811281801340.1605-100000@bright.fx.genx.net> from Alfred Perlstein at "Nov 28, 98 06:21:43 pm"

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.

-- 
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?199811282344.KAA26555>