busybox segfault in __uClibc_main

Peter S. Mazinger ps.m at gmx.net
Sun Dec 11 21:28:34 UTC 2005


On Sun, 11 Dec 2005, Joakim Tjernlund wrote:

>  > 
> > 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

can this somehow be checked on other arch as well? I am sure that 
__uClibc_main "offers" more places that can be guarded w/ SHARED

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list