This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Header Files


> 
> I would like to know if we can have any control on the file header in
> the GNU tool chain for AOUT or COFF format. I have found clues in the
> LD documentation but only for the ELF format. My goal is to have at the
> end of the GNU tool chain a file ROMable. There is of course the simple
> solution that is to suppress the header at the end of the tool chain by
> a program made on purpose. Does anybody sees a better way ?
> 
> Thanks in advance to read and answer to my question.
> 
> --
> Olivier Carmona
> Assistant de Recherche au Laboratoire de Micro-Informatique
> IN-F-132, LAMI-EPFL, 1015 Lausanne, Suisse
> http://diwww.epfl.ch/lami/team/carmona


You don't need to use the AOUT or COFF output.  My suggestion
would be to use `objcopy' to output a 'binary' or SRECORD or
something that you could download into a ROM.  Is this what 
you are asking to do?

You can then either use LD scripts or `objcopy' parameters to
place certain sections in certain parts of the ROM.

   Cheers,
   Jake

-- 
   janovetz@uiuc.edu    | Once you have flown, you will walk the earth with
 University of Illinois | your eyes turned skyward, for there you have been,
                        | there you long to return.     -- da Vinci
        PP-ASEL         | http://www.ews.uiuc.edu/~janovetz/index.html