glibc/sysdeps/unix/sysv/linux
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 Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
i386 Fix typos. 2013-08-30 18:08:59 +02:00
net Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
powerpc PowerPC64 ELFv2 ABI 2/6: Remove function descriptors 2013-12-04 07:41:38 -06:00
s390 Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
scsi Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
sh Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
sparc Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
sys Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
wordsize-64 CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r 2013-08-16 09:40:34 +02:00
x86 Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
x86_64 New API to set default thread attributes 2013-06-15 12:24:15 +05:30
Implies
Makefile tst-fanotify: new simple test 2013-09-02 23:22:23 -04:00
Versions
_G_config.h
_exit.c
a.out.h Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
accept.S
accept4.c
adjtime.c
aio_sigqueue.c
bind.S
check_native.c
check_pf.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
clock.c Improve precision of clock() function on Linux 2013-06-13 09:54:35 +05:30
clock_getcpuclockid.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_getres.c
clock_gettime.c
clock_nanosleep.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_settime.c
cmsg_nxthdr.c
configure Set arch_minimum_kernel to 3.4.0 for x32 2013-11-13 05:43:58 -08:00
configure.ac Set arch_minimum_kernel to 3.4.0 for x32 2013-11-13 05:43:58 -08:00
connect.S
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c
dl-sysdep.h
dl-vdso.c
dl-vdso.h
dl-writev.h
epoll_pwait.c
errqueue.h
eventfd.c
eventfd_read.c
eventfd_write.c
execve.c
exit-thread.S
faccessat.c
fallocate.c
fallocate64.c
fatal-prepare.h
fchmodat.c
fchownat.c
fcntl.c
fd_to_filename.h
fexecve.c
fips-private.h
fpathconf.c
fstatfs64.c
fstatvfs.c
fstatvfs64.c
ftime.c
ftruncate64.c
futimens.c
futimes.c
futimesat.c
fxstat.c
fxstat64.c
fxstatat.c
fxstatat64.c
gai_sigqueue.c
getclktck.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getcwd.c
getdents.c
getdents64.c
getdirentries.c
getdirentries64.c
getdtsz.c
gethostid.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getipv4sourcefilter.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
getloadavg.c
getlogin.c
getlogin_r.c
getpagesize.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getpeername.S
getpriority.c
getpt.c
getrlimit64.c
getsockname.S
getsockopt.S
getsourcefilter.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
getsysstats.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
if_index.c
ifaddrs.c Fix typos. 2013-08-29 09:11:45 +02:00
ifreq.c
internal_accept4.S
internal_recvmmsg.S
internal_sendmmsg.S
internal_statvfs.c
internal_statvfs64.c
ipc_priv.h
kernel-features.h
kernel-posix-cpu-timers.h
kernel_sigaction.h
kernel_stat.h Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
kernel_termios.h
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h Support ELFOSABI_GNU on all GNU systems. 2013-08-29 12:22:18 +02:00
libc_fatal.c Include <string.h> in sysdeps/unix/sysv/linux/libc_fatal.c. 2013-06-22 19:30:10 +00:00
linkat.c
linux_fsinfo.h
listen.S
llseek.c
local-setxid.h
lseek64.c
lutimes.c Fix leading whitespaces. 2013-06-06 20:36:07 +02:00
lxstat.c
lxstat64.c
makedev.c
malloc-sysdep.h
mkdirat.c
mmap64.c Include <string.h> in sysdeps/unix/sysv/linux/mmap64.c. 2013-08-20 19:38:23 +00:00
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
netlinkaccess.h Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
nice.c
not-cancel.h
nscd_setup_thread.c
ntp_gettime.c
ntp_gettimex.c Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
open64.c
openat.c
openat64.c
opendir.c
opensock.c
pathconf.c
pathconf.h
paths.h
posix_fadvise.c
posix_fadvise64.c
posix_fallocate.c
posix_fallocate64.c
posix_madvise.c
ppoll.c
pread.c
pread64.c
preadv.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
preadv64.c
prlimit.c
prof-freq.c
profil.c
pselect.c
ptrace.c
ptsname.c Fix typos. 2013-08-29 09:11:45 +02:00
pwrite.c
pwrite64.c
pwritev.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
pwritev64.c
readahead.c
readdir64.c
readdir64_r.c
readlinkat.c
readonly-area.c
readv.c
reboot.c
recv.S
recvfrom.S
recvmmsg.c
recvmsg.S
remove.c
renameat.c
sa_len.c Clean up __libc_sa_len helper. 2013-08-27 10:34:16 -07:00
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
semctl.c
semget.c
semop.c
semtimedop.c
send.S
sendmmsg.c
sendmsg.S
sendto.S
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit64.c
setsockopt.S
setsourcefilter.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
setuid.c
shm_open.c Properly handle shm_open validation. Fixes bug 16274. 2013-12-03 20:16:33 +01:00
shm_unlink.c
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.S
sigaction.c
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigstack.c
sigsuspend.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sizes.h
sleep.c
socketcall.h Fix typos. 2013-08-21 19:48:48 +02:00
socketpair.S
speed.c
statfs64.c
statvfs.c
statvfs64.c
symlinkat.c
sync_file_range.c
syscalls.list
sysconf.c
sysctl.c
sysctl.mk
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
termio.h
testrtsig.h
time.c
times.c
timespec_get.c
truncate64.c
tst-clone.c
tst-fanotify.c tst-fanotify: fix style 2013-09-28 23:53:50 -04:00
tst-getcpu.c
ttyname.c
ttyname_r.c
ualarm.c
umount.S
umount2.S
unlinkat.c
unlockpt.c
updwtmp.c
usleep.c
ustat.c
utimensat.c
utimes.c
utmp_file.c
vfork.c
wait.c
wait3.c
waitid.c
waitpid.c
writev.c
xmknod.c
xmknodat.c
xstat.c
xstat64.c
xstatconv.c Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
xstatconv.h