glibc/sysdeps/unix/sysv/linux/powerpc
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
..
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 2/6: Remove function descriptors 2013-12-04 07:41:38 -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 Update. 2002-04-06 01:45:15 +00:00
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 Update. 2000-08-12 05:14:52 +00:00
getmsg.c Update. 1999-12-21 16:03:22 +00:00
getrlimit64.c * csu/Makefile ($(objpfx)version-info.h): Don't use echo -n 2000-01-27 23:40:48 +00:00
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 Update. 2002-09-05 10:28:51 +00:00
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 Update. 2000-08-16 01:40:12 +00:00
profil-counter.h
putmsg.c Update. 1999-12-21 16:03:22 +00:00
readdir64_r.c Update. 2000-08-12 05:14:52 +00:00
readdir64.c Update. 2000-08-12 05:14:52 +00:00
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 * csu/Makefile ($(objpfx)version-info.h): Don't use echo -n 2000-01-27 23:40:48 +00:00
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