glibc/sysdeps/unix/sysv/linux/powerpc/powerpc64
Ulrich Weigand 8b8a692cfd PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes
This updates glibc for the changes in the ELFv2 relating to the
stack frame layout.  These are described in more detail here:
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01149.html
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01146.html

Specifically, the "compiler and linker doublewords" were removed,
which has the effect that the save slot for the TOC register is
now at offset 24 rather than 40 to the stack pointer.

In addition, a function may now no longer necessarily assume that
its caller has set up a 64-byte register save area its use.

To address the first change, the patch goes through all assembler
files and replaces immediate offsets in instructions accessing the
ABI-defined stack slots by symbolic offsets.  Those already were
defined in ucontext_i.sym and used in some of the context routines,
but that doesn't really seem like the right place for those defines.

The patch instead defines those symbolic offsets in sysdeps.h,
in two variants for the old and new ABI, and uses them systematically
in all assembler files, not just the context routines.

The second change only affected a few assembler files that used
the save area to temporarily store some registers.  In those
cases where this happens within a leaf function, this patch
changes the code to store those registers to the "red zone"
below the stack pointer.  Otherwise, the functions already allocate
a stack frame, and the patch changes them to add extra space in
these frames as temporary space for the ELFv2 ABI.
2013-12-04 07:41:39 -06:00
..
970 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
a2 powerpc: PPCA2/A2 optimized memcpy function 2010-10-24 21:47:33 -04:00
cell powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
fpu PowerPC: Fix __fe_nomask_env missing symbol 2013-11-26 07:25:08 -06:00
nptl New API to set default thread attributes 2013-06-15 12:24:15 +05:30
power4 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power5 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power5+ powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power6 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power6x powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power7 powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
power8 PowerPC: Enable POWER8 platform sans hwcap bits. 2013-06-24 15:33:32 -05:00
____longjmp_chk.S PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
brk.S PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
clone.S PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
dl-cache.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fcntl.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getcontext.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Implies Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64" 2013-01-10 10:44:05 +01:00
kernel_stat.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ldsodefs.h PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
makecontext.S PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
Makefile Add default-abi definitions for powerpc, s390 and sparc. 2012-06-01 21:19:28 +00:00
pread64.c Remove CHECK_N and bp-checks.h. 2013-02-08 20:06:30 +00:00
pread.c Remove CHECK_N and bp-checks.h. 2013-02-08 20:06:30 +00:00
pwrite64.c Remove CHECK_N and bp-checks.h. 2013-02-08 20:06:30 +00:00
pwrite.c Remove CHECK_N and bp-checks.h. 2013-02-08 20:06:30 +00:00
setcontext.S PowerPC64: Fix incorrect CFI in *context routines 2013-12-04 07:41:37 -06:00
socket.S PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
swapcontext.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sync_file_range.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscalls.list * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open 2008-03-27 16:23:55 +00:00
sysdep.h PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq. 2013-01-18 07:44:38 -06:00
ucontext_i.sym PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
umount.c * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Include x86_64 2006-02-28 19:07:44 +00:00
Versions Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
vfork.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00