From owner-freebsd-questions Fri Oct 17 16:47:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA15954 for questions-outgoing; Fri, 17 Oct 1997 16:47:09 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA15948 for ; Fri, 17 Oct 1997 16:47:02 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id JAA04868; Sat, 18 Oct 1997 09:16:32 +0930 (CST) Message-ID: <19971018091632.64200@lemis.com> Date: Sat, 18 Oct 1997 09:16:32 +0930 From: Greg Lehey To: lukas@reichardt.ch Cc: questions@FreeBSD.ORG Subject: Re: a.out <-> GNU CC References: <34472f6e.11976311@1.1.1.17> <19971017193844.40743@lemis.com> <34474b1a.19060737@1.1.1.17> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34474b1a.19060737@1.1.1.17>; from Lukas Ruf on Fri, Oct 17, 1997 at 11:48:41AM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Oct 17, 1997 at 11:48:41AM +0000, Lukas Ruf wrote: > Hi Greg > > On Fri, 17 Oct 1997 19:38:44 +0930, you wrote: > >> For any version of a UNIX C compiler: >> >> cc a.o b.o c.o >> >> In other words, you just specify the names of the object files. If >> you don't use -o, it will call the file a.out. >> > > sorry, i have not got it. Possibly you should get a book about the C programming language. I would recommend "The C programming Language", byu Kernighan and Ritchie. > BTW: why do you specify a list of object files for "cc" ? That's what you asked for. > If the default output format of a compiler/linker pair to produce an > executable is ELF, how can I tell the compiler/linker pair to produce > an a.out-format executable. Ah, finally the question. Can I assume that you want to link ELF object files and produce an a.out executable? > In other words: which command line options do I have to specify to > make ld link a list of object files into an executable of format a.out > (its name -- I know -- is specified by -o , defaulting to > "a.out"). Currently, this is speculation. The default output format is a.out. I can't tell you how this will be done, or if it will be done at all. Greg