This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> + 	/* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]