crt0.S compilation question
vishu27@cox.net
vishu27@cox.net
Fri Nov 7 01:14:00 GMT 2003
I used nostartfiles. But I think I figured out the problem. In my crt0.S file, I said .global _start after .section .text
If I put the .global _start before the .section .text, there is no complaint. I am not sure why but should there be any particular order. I am writing for xscale.
Thanks
Vish
>
> From: yuwen <yuwen@micetek.com.cn>
> Date: 2003/11/06 Thu PM 08:05:25 EST
> To: vishu27@cox.net
> CC: crossgcc@sources.redhat.com
> Subject: Re: crt0.S compilation question
>
> vishu27@cox.net wrote:
>
> > Hi,
> > I have created my own crt0.S. I would like to know how it is compiled
> >
> > I just compiiled it using
> > gcc -c crt0.0 crt0.S
> >
> > Is this sufficient? When I link it with another simple c program and a linker script I created, gcc complains that it cannot find the symbol _start. If I make _start global in the crt0.S file, it complains that there are multiple definitions for start. Can someone help me regarding this. Please let me know if you need more information.
> Please give us your link command.
> I guess you didn't use option `-nostartfiles', right?
>
> Dai Yuwen
>
> >
> > Really appreciate your help
> >
> > Thanks
> > Vish
> >
> >
> > ------
> > Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> > Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> >
> >
> >
>
>
>
> ------
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list