glibc/sysdeps/unix/sysv/linux/powerpc
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
..
bits PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
powerpc32 Add powerpc-nofpu/e500 support functions for atomic compound assignment and FLT_ROUNDS. 2013-11-28 18:01:41 +00:00
powerpc64 PowerPC64 ELFv2 ABI 4/6: Stack frame layout changes 2013-12-04 07:41:39 -06:00
sys Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
chown.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
configure rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
configure.ac rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
dl-brk.S
dl-cache.h Update. 2003-06-25 08:19:44 +00:00
dl-static.c PowerPC: use _dl_static_init to set GLRO(gl_pagesize) 2013-07-23 07:39:57 -05:00
dl-sysdep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fchownat.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
get_clockfreq.c PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq. 2013-01-18 07:44:38 -06:00
get_timebase_freq.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getdents64.c
getmsg.c
getrlimit64.c
gettimeofday.c PowerPC: Fix vDSO missing ODP entries 2013-11-08 05:04:25 -06:00
init-first.c PowerPC: fix backtrace to handle signal trampolines 2013-08-20 15:05:49 -05:00
ioctl.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ipc_priv.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
kernel_termios.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
lchown.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ldconfig.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ldd-rewrite.sed
ldsodefs.h PowerPC: use _dl_static_init to set GLRO(gl_pagesize) 2013-07-23 07:39:57 -05:00
libc-start.c Fix typos. 2013-08-29 09:11:45 +02:00
Makefile PowerPC: use _dl_static_init to set GLRO(gl_pagesize) 2013-07-23 07:39:57 -05:00
nldbl-abi.h 2006-01-27 Dwayne Grant McConnell <decimal@us.ibm.com> 2006-01-28 00:15:15 +00:00
oldgetrlimit64.c
profil-counter.h
putmsg.c
readdir64_r.c
readdir64.c
readelflib.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
rt-sysdep.c Update. 2004-04-19 06:19:34 +00:00
sched_getcpu.c PowerPC: Change sched_getcpu to use vDSO getcpu instead of syscall. 2013-01-09 20:30:11 -06:00
setrlimit.c
sigcontextinfo.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscall.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscalls.list Update. 2003-09-03 02:58:30 +00:00
sysdep.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
test-gettimebasefreq.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
time.c PowerPC: Fix vDSO missing ODP entries 2013-11-08 05:04:25 -06:00
Versions PowerPC: use _dl_static_init to set GLRO(gl_pagesize) 2013-07-23 07:39:57 -05:00