This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: porting questions again for the SH


On Mar  7, 2002, John van Loon <john@controlintelligence.com> wrote:

> Crt0 defines stack_k, edata_k, end_k, main_k, exit_k ...
> all of these are placed in .text (in my case it is FLASH ROM)
> Can someone give me some pointers on where to look in figuring out
> what these are.

They're just labels that contain the addresses of the corresponding
symbols, because there's no better way to load labels into registers
on the SH than using a PC-relative mov.l.

> I need to
> figure out where they need to be located (RAM or ROM).

Since they're in the text segment, they can be placed on ROM.

-- 
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                Professional serial bug killer


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