how can i build a gcc to generate a.out binary format(not ELF)?

Alexandre Oliva aoliva@redhat.com
Fri Mar 9 20:07:00 GMT 2001


On Mar  9, 2001, zjj <zjj3143@263.net> wrote:

>    i'v have downloaded gcc-2.95(gcc-2.95.2) and binutils-2.9.1.0.25,but
> i don't know how to configure these packages and make gcc generate a.out binary
> format.Anybody can help me? THANKS in advance!

This is not about the compiler, but about the assembler and linker,
that are part of binutils.  You have to configure them with a triplet
that indicates you want a.out binaries.  Which triplet it is depends
on which architecture you want it to target.  Even if GCC doesn't call
the linker in a way that causes it to generate non-a.out binaries,
there's always objcopy.  You may want to configure binutils with
--enable-targets=all.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc-help mailing list