This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Object file formats, compilers and linkers
- To: "JB" <jamesb at northnet dot com dot au>
- Subject: Re: Object file formats, compilers and linkers
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 09 Jan 2001 14:08:55 -0200
- Cc: <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <004801c07a55$ba2a0a20$984d57cb@spunky>
On Jan 9, 2001, "JB" <jamesb@northnet.com.au> wrote:
> I'm interested in how a compiler writes a relocatable object file
GCC doesn't. It just outputs assembly code. It's the assembler's job
to create a relocatable object file.
> and how a linker messes with these to produce an executable file.
> Is there some kind of easy to read (i.e. plain English)
> documentation on various object and executable file formats, for the
> novice?
There's a very good book on this subject, called Linkers & Loaders (or
something alike), but I heard it's out of print :-(
--
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