Jakub Jelinek writes: > On Wed, Oct 17, 2007 at 02:26:50PM +1000, Benjamin Herrenschmidt wrote: > > Unfortunately, a bug in gcc cause it to not quite work either, but that > > is being fixed separately with something around the lines of: > > > > linux-unwind.h: > > > > fs->regs.reg[R_CR2].loc.offset = (long) ®s->ccr - new_cfa; > > + /* CR? regs are just 32-bit and PPC is big-endian. */ > > + fs->regs.reg[R_CR2].loc.offset += sizeof (long) - 4; > > Small correction. If vdso is present, then fixing the vdso is all that is > needed, the above mentioned code is used only if the vdso is not present > (or if glibc doesn't support the vdso).
Perhaps we should test this change with a hacked libgcc, just to make sure it fixes the bug. Andrew. -- Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK Registered in England and Wales No. 3798903 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev