linux/arch/powerpc/kernel/vdso64
Ulrich Weigand 280270828f powerpc: Wrong DWARF CFI in the kernel vdso for little-endian / ELFv2
I've finally tracked down why my CR signal-unwind test case still
fails on little-endian.  The problem turned to be that the kernel
installs a signal trampoline in the vDSO, and provides a DWARF CFI
record for that trampoline.  This CFI describes the save location
for CR:

  rsave (70, 38*RSIZE + (RSIZE - CRSIZE))

which is correct for big-endian, but points to the wrong word on
little-endian.   This is wrong no matter which ABI.

In addition, for the ELFv2 ABI, we should not only provide a CFI
record for register 70 (cr2), but for all CR fields separately.
Strictly speaking, I guess this would mean providing two separate
vDSO images, one for ELFv1 processes and one for ELFv2 processes (or
maybe playing some tricks with conditional DWARF expressions).
However, having CFI records for the other CR fields in ELFv1 is not
actually wrong, they just will be ignored.   So it seems the simplest
fix would be just to always provide CFI for all the fields.

Signed-off-by: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-11-21 09:19:23 +11:00
..
.gitignore [POWERPC] Update .gitignore for new vdso generated files 2007-10-08 08:38:12 -05:00
cacheflush.S [POWERPC] vdso: Fixes for cache block sizes 2007-11-20 13:56:31 +11:00
datapage.S
getcpu.S powerpc: Add VDSO version of getcpu 2012-07-11 14:18:40 +10:00
gettimeofday.S powerpc: Add VDSO version of time 2013-04-23 16:05:05 +10:00
Makefile powerpc: Add VDSO version of getcpu 2012-07-11 14:18:40 +10:00
note.S
sigtramp.S powerpc: Wrong DWARF CFI in the kernel vdso for little-endian / ELFv2 2013-11-21 09:19:23 +11:00
vdso64_wrapper.S Use macros for .data.page_aligned section. 2009-09-21 06:27:08 +02:00
vdso64.lds.S powerpc: Add ability to build little endian kernels 2013-10-11 16:48:56 +11:00