crt1.S start code

Lei Sun lei_sun at comcast.net
Fri Dec 23 21:16:51 UTC 2005


This is weird, after i changed it , it did worked as i expected, at least 
the argv are passed into my main() correctly.

----- Original Message ----- 
From: "Mike Frysinger" <vapier at gentoo.org>
To: "Lei Sun" <lei_sun at comcast.net>
Cc: <uclibc at uclibc.org>
Sent: Friday, December 23, 2005 4:12 PM
Subject: Re: crt1.S start code


> On Fri, Dec 23, 2005 at 03:53:15PM -0500, Lei Sun wrote:
>> /* clear the frame pointer and link registers */
>>     mov fp, #0
>>     mov lr, #0
>>     /* pop argc off the stack and save a pointer to argv */
>>     ldr a2, [sp], #4
>>     mov a3, sp
>
> this code is the same as in glibc and it's worked thus far, so i think
> it's safe to assume the current code is correct
> -mike 




More information about the uClibc mailing list