porting questions again for the SH
Alexandre Oliva
aoliva@redhat.com
Thu Mar 7 20:43:00 GMT 2002
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
More information about the Newlib
mailing list