glibc/sysdeps/unix/sysv/linux/powerpc/bits
Ulrich Weigand 696caf1d00 PowerPC64 ELFv2 ABI 2/6: Remove function descriptors
This patch adds support for the ELFv2 ABI feature to remove function
descriptors.  See this GCC patch for in-depth discussion:
http://gcc.gnu.org/ml/gcc-patches/2013-11/msg01141.html

This mostly involves two types of changes: updating assembler source
files to the new logic, and updating the dynamic loader.

After the refactoring in the previous patch, most of the assembler source
changes can be handled simply by providing ELFv2 versions of the
macros in sysdep.h.   One somewhat non-obvious change is in __GI__setjmp:
this used to "fall through" to the immediately following __setjmp ENTRY
point.  This is no longer safe in the ELFv2 since ENTRY defines both
a global and a local entry point, and you cannot simply fall through
to a global entry point as it requires r12 to be set up.

Also, makecontext needs to be updated to set up registers according to
the new ABI for calling into the context's start routine.

The dynamic linker changes mostly consist of removing special code
to handle function descriptors.  We also need to support the new PLT
and glink format used by the the ELFv2 linker, see:
https://sourceware.org/ml/binutils/2013-10/msg00376.html

In addition, the dynamic linker now verifies that the dynamic libraries
it loads match its own ABI.

The hack in VDSO_IFUNC_RET to "synthesize" a function descriptor
for vDSO routines is also no longer necessary for ELFv2.
2013-12-04 07:41:38 -06:00
..
environments.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
fcntl.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
ioctl-types.h Update. 1997-11-26 04:23:08 +00:00
ipc.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
libc-vdso.h PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
mman.h Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.h 2013-03-05 19:40:13 +01:00
msq.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
ppc.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sem.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
shm.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
sigstack.h PowerPC SIGSTKSZ 2013-10-04 10:39:11 +09:30
stat.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
termios.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
wordsize.h Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32 2012-05-21 13:39:55 -07:00