glibc/sysdeps/powerpc/powerpc64
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
..
970
a2
bits
cell Fix typos. 2013-08-21 19:48:48 +02:00
fpu PowerPC floating point little-endian [14 of 15] 2013-10-04 10:36:24 +09:30
power4 PowerPC LE memset 2013-10-04 10:41:35 +09:30
power5
power5+
power6 PowerPC LE memset 2013-10-04 10:41:35 +09:30
power6x
power7 PowerPC: strcpy/stpcpy optimization for PPC64/POWER7 2013-10-25 13:28:24 -05:00
power8
__longjmp-common.S PowerPC LE setjmp/longjmp 2013-10-04 10:37:59 +09:30
__longjmp.S
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
bzero.S
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
crti.S PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
crtn.S
dl-dtprocnum.h
dl-irel.h PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
dl-machine.c
dl-machine.h PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
dl-trampoline.S PowerPC64 ELFv2 ABI 1/6: Code refactoring 2013-12-04 07:41:38 -06:00
entry.h
ffsll.c
hp-timing.c
hp-timing.h
Implies
Makefile
memcpy.S PowerPC LE memcpy 2013-10-04 10:41:24 +09:30
memset.S PowerPC LE memset 2013-10-04 10:41:35 +09:30
ppc-mcount.S
register-dump.h
rtld-memset.c
setjmp-common.S PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
setjmp.S PowerPC ugly symbol versioning 2013-10-04 10:38:28 +09:30
stackguard-macros.h PowerPC: Fix POINTER_CHK_GUARD thread register for PPC64 2013-09-25 13:43:04 -05:00
start.S
stpcpy.S PowerPC: strcpy/stpcpy optimization for PPC64/POWER7 2013-10-25 13:28:24 -05:00
strchr.S PowerPC LE strchr 2013-10-04 10:40:22 +09:30
strcmp.S PowerPC LE strcmp and strncmp 2013-10-04 10:39:52 +09:30
strcpy.S PowerPC: strcpy/stpcpy optimization for PPC64/POWER7 2013-10-25 13:28:24 -05:00
strlen.S PowerPC LE strlen 2013-10-04 10:39:32 +09:30
strncmp.S PowerPC LE strcmp and strncmp 2013-10-04 10:39:52 +09:30
sysdep.h PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
tls-macros.h
tst-audit.h