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: crossgcc: arbitrary sections?


    Josef> Hello!  I have built m68k-coff for an embedded environment
    Josef> and it runs great.  But now I need arbitrary named sections
    Josef> to store data which can be changed at run-time but needs to
    Josef> survive across power-downs. Nut gcc says, I can't specify
    Josef> arbitrary named sections with coff.  Would this be possible
    Josef> with aout or elf? Or do I need to specify some wired option
    Josef> while compiling?

You can most certainly do what you want with coff. My favorite method is
to use linker scripts.
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."