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

See the CrossGCC FAQ for lots more infromation.


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

Re: crossgcc: code wont run from ROM.


Peter Popov wrote:

> > I just had a thought.  Maybe I need to copy the initialised data section from
> > ROM to RAM ?
> > I know that the DiabData startup files do this and I'm pretty sure I haven't done
> > this in my gcc startup files.
> > Does this sound plausable ?
>
> Sure, if you are not doing that, you'll have all sorts of problems.

I 've just had a look at the gcc linker command file and it is a bit of a mess.  What
sections do I need to copy from ROM to RAM for powerpc-eabi format.  The ones that I
think are canditdates are .rodata, .sdata2 and .data.

Do I need to copy all or just some of these sections ?
Are there any others I've missed ?

Brendan Simon.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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