Bug#749060: [PATCH] [klibc] ppc64: ELFv2: Load TOC value in system call stub

2014-09-11 Thread Aurelien Jarno
On Tue, Sep 09, 2014 at 07:17:19PM -0300, Mauricio Faria de Oliveira wrote: This fixes a segmentation fault in the system call's error handling path with dynamically-linked binaries on PowerPC64 little endian. The system call stub wasn't loading up r2 with the appropriate TOC value in its

Bug#749060: [PATCH] [klibc] ppc64: ELFv2: Load TOC value in system call stub

2014-09-09 Thread Mauricio Faria de Oliveira
This fixes a segmentation fault in the system call's error handling path with dynamically-linked binaries on PowerPC64 little endian. The system call stub wasn't loading up r2 with the appropriate TOC value in its global entry point. The r2 setup code comes from the FUNC_START macro in gcc [1]

Bug#749060: [PATCH] [klibc] ppc64: ELFv2: Load TOC value in system call stub

2014-09-09 Thread Alan Modra
On Tue, Sep 09, 2014 at 07:17:19PM -0300, Mauricio Faria de Oliveira wrote: usr/klibc/arch/ppc64/sysstub.ph |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usr/klibc/arch/ppc64/sysstub.ph b/usr/klibc/arch/ppc64/sysstub.ph index b3f6e38..a0c6d41 100644 ---