glibc/sysdeps
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
..
generic Adjust generic swapon prototype to match Linux version. 2013-11-21 15:44:26 -08:00
gnu Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
i386 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00
ieee754 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00
init_array Add sysdeps/init_array to produce empty crt[in].o and use .preinit_array for gcrt1.o 2013-03-12 12:50:13 -07:00
mach rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
posix Remove redundant GAIH_OKIFUNSPEC and GAIH_EAI. 2013-12-02 20:23:13 +05:30
powerpc PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
pthread Fix typos. 2013-08-21 19:48:48 +02:00
s390 [BZ #16214] S/390: Fix TLS GOT pointer setup. 2013-11-29 09:57:04 +01:00
sh Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271). 2013-11-28 16:50:38 +00:00
sparc Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271). 2013-11-28 16:50:38 +00:00
unix PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
wordsize-32 Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
wordsize-64 Move dummy glob64.c alongside glob.c that defines glob64. 2013-05-06 16:11:11 -07:00
x86 Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
x86_64 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00