busybox segfault in __uClibc_main

Joakim Tjernlund joakim.tjernlund at transmode.se
Sun Dec 11 19:58:12 UTC 2005


 > 
> Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> >
> > Curious, does replacing r7 with r9 in
> > 	lwz	r7,_NIP(r1)
> > 	lwz	r8,_MSR(r1)
> > 	FIX_SRR1(r8, r0)
> > 	lwz	r2,GPR2(r1)
> > 	lwz	r1,GPR1(r1)
> > 	mtspr	SPRN_SRR0,r7
> > 	mtspr	SPRN_SRR1,r8
> > 	SYNC
> > 	RFI
> > work for you?
> 
> I'm at home atm, but I'm damned sure it would work.

hmm, one could also fix it in __uClibc_main() by addin #ifdef SHARED .. #endif, not tested

#ifdef SHARED
  __rtld_fini = rtld_fini;
#endif

will probably only work on current svn, not on .28




More information about the uClibc mailing list