glibc/sysdeps/unix/sysv/linux/powerpc
Florian Weimer 035c012e32 Reduce the statically linked startup code [BZ #23323]
It turns out the startup code in csu/elf-init.c has a perfect pair of
ROP gadgets (see Marco-Gisbert and Ripoll-Ripoll, "return-to-csu: A
New Method to Bypass 64-bit Linux ASLR").  These functions are not
needed in dynamically-linked binaries because DT_INIT/DT_INIT_ARRAY
are already processed by the dynamic linker.  However, the dynamic
linker skipped the main program for some reason.  For maximum
backwards compatibility, this is not changed, and instead, the main
map is consulted from __libc_start_main if the init function argument
is a NULL pointer.

For statically linked binaries, the old approach based on linker
symbols is still used because there is nothing else available.

A new symbol version __libc_start_main@@GLIBC_2.34 is introduced because
new binaries running on an old libc would not run their ELF
constructors, leading to difficult-to-debug issues.
2021-02-25 12:13:02 +01:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
powerpc32 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
powerpc64 Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
sys Add more ptrace constants for AArch64 and PowerPC. 2021-02-08 22:47:04 +00:00
configure
configure.ac
dl-auxv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-cache.h
dl-static.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
elision-conf.c nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
elision-conf.h nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
elision-lock.c nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
elision-timed.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
elision-trylock.c nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
elision-unlock.c nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
get_timebase_freq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gettimeofday.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
htm.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies
ioctl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ipc_priv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
kernel_sigaction.h m68k: Fix sigaction kernel definition (BZ #23960) 2018-12-18 16:45:10 -02:00
kernel_termios.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
kernel-features.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldconfig.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldd-rewrite.sed
ldsodefs.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc-start.c Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
libc-start.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc-vdso.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile nptl: Move elision implementations into libc 2021-02-23 14:59:34 +01:00
nldbl-abi.h
pt-longjmp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread_attr_setstack.c
pthread_attr_setstacksize.c
readelflib.c ldconfig/x86: Store ISA level in cache and aux cache 2021-01-13 05:51:17 -08:00
rt-sysdep.c
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
struct_kernel_shmid64_ds.h sysv: linux: Add 64-bit time_t variant for shmctl 2020-07-09 12:05:47 -03:00
syscall.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sysconf.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sysdep.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sysdep.h powerpc64: Select POWER9 machine for the scv instruction 2021-01-22 10:45:27 +01:00
test-gettimebasefreq-static.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-gettimebasefreq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-powerpc-linux-sysconf.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
time.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Revert {send,sendm,recv,recvm}msg conformance changes 2016-06-10 11:58:16 -03:00
xstatver.h Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00