This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: porting questions again for the SH
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: John van Loon <john at controlintelligence dot com>
- Cc: newlib at sources dot redhat dot com
- Date: 08 Mar 2002 01:43:24 -0300
- Subject: Re: porting questions again for the SH
- Organization: GCC Team, Red Hat
- References: <3C880EF2.7030101@controlintelligence.com>
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