From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 9 18:39:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7615A16A4B3; Thu, 9 Oct 2003 18:39:46 -0700 (PDT) Received: from april.chuckr.org (dsl092-151-030.wdc2.dsl.speakeasy.net [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 343DC43FB1; Thu, 9 Oct 2003 18:39:45 -0700 (PDT) (envelope-from chuckr@chuckr.org) Received: from chuckr.org (dsl092-151-044.wdc2.dsl.speakeasy.net [66.92.151.44]) by april.chuckr.org (Postfix) with ESMTP id 6DB7E1152A; Thu, 9 Oct 2003 21:17:13 -0400 (EDT) Message-ID: <3F860DE4.90007@chuckr.org> Date: Thu, 09 Oct 2003 18:39:48 -0700 From: chuckr User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030902 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: deischen@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Eric Jacobs cc: freebsd-hackers@freebsd.org Subject: Re: gcc object format -> need motorola s-records. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 01:39:46 -0000 Daniel Eischen wrote: >On Wed, 8 Oct 2003, Eric Jacobs wrote: > > > >>On Wed, 8 Oct 2003 22:52:10 +0100 >>Josef Karthauser wrote: >> >> >> >>>Does anyone know how to control the type of output files that gcc >>>creates? I need to generate motorola S-records instead of ELF files, >>>but I can't find a switch to make this happen. Do I need to build a new >>>compiler by hand, and if so, does anyone know what the backend object >>>format is called? >>> >>> >>gcc -Wl,--oformat -Wl,srec >> >> > >I can't get that to work for me, but: > > objcopy -O srec > >works. > > > I really think you had to recompile all of gcc (like I;d posted before). I know it's a method that's available from libiberty, but I didn't think it was compiled in unless you specifically optioned it. At that point, then, you could give the options you mentioned and get it to work.