ARM crt0.o: Add NULL to end of argv[]

Richard Earnshaw rearnsha@arm.com
Mon Nov 18 07:50:00 GMT 2002


> + 	/* Push a NULL argument onto the end of the list.  */
> + 	mov	r2, #0
> + #ifdef __thumb__
> + 	push	{r2}
> + #else
> + 	stmfd	sp!, {r1}
> + #endif
>   #endif

That can't be right.  The arm and thumb code push different registers!!!!

R.



More information about the Newlib mailing list