On 8/20/2008 7:54 AM, tike64 wrote:
>> From: Joakim Tjernlund
>> On Wed, 2008-08-20 at 03:07 -0700, tike64 wrote:
>>     
>>> There is still something I can't get right in my head. By only looking at 
>>> the 
>>> codes I would be sure that staticly linked program in full ARM-with-MMU 
>>> system 
>>> would crash in the same way. Yet with gdb I see that in that case the r0 is 
>>> zero 
>>> at the start of the _start. Who is clearing it?
>>>       
>> Linux clears it before staring the app.
>>     
>
> Ok, but where?
>   

It's done by the kernel in load_elf_binary() in fs/binfmt_elf.c.  See
the ELF_PLAT_INIT macro in <asm/elf.h>.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com

_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to