Date: Thu, 09 Oct 2003 18:39:48 -0700 From: chuckr <chuckr@chuckr.org> To: deischen@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: Re: gcc object format -> need motorola s-records. Message-ID: <3F860DE4.90007@chuckr.org> In-Reply-To: <Pine.GSO.4.10.10310082051020.7462-100000@pcnet5.pcnet.com> References: <Pine.GSO.4.10.10310082051020.7462-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote: >On Wed, 8 Oct 2003, Eric Jacobs wrote: > > > >>On Wed, 8 Oct 2003 22:52:10 +0100 >>Josef Karthauser <joe@FreeBSD.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F860DE4.90007>