glibc/sysdeps/unix
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
..
bsd Fix typos. 2013-08-29 09:11:45 +02:00
i386 Remove remaining bounded-pointers support from i386 .S files. 2013-02-21 22:21:52 +00:00
inet Move nss directory into sysdeps Subdirs. 2013-02-05 14:32:48 -08:00
powerpc Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sh Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sysv/linux PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
x86_64 Remove bounded-pointers handling from x86_64 assembly sources. 2013-02-17 21:57:26 +00:00
clock_gettime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_nanosleep.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_settime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
confstr.h
get_child_max.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getpagesize.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
grantpt.c CVE-2013-2207, BZ #15755: Disable pt_chown. 2013-07-21 15:39:55 -04:00
ifreq.c True stub __ifreq. 2013-08-27 10:42:52 -07:00
Implies
make-syscalls.sh don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
Makefile don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
s-proto-cancel.S
s-proto.S
setxid.h
sockatmark.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
stime.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Subdirs
syscall-template.S 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 Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
sysdep.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00