[PATCH] powerpc: Fix 64 bits vDSO dwarf info for CR register
Andrew Haley
aph at redhat.com
Thu Oct 18 00:00:17 EST 2007
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
More information about the Linuxppc-dev
mailing list