glibc/sysdeps/alpha
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
..
alphaev5 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alphaev6 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alphaev67 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fpu Update alpha libm-test-ulps 2021-01-28 14:05:14 -03:00
nptl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
__longjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
_mcount.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
add_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
addmul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atomic-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
bsd-_setjmp.S
bsd-setjmp.S
bzero.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
configure
configure.ac
crti.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
crtn.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
div_libc.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
div.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
divl.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
divlu.S
divq.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
divqu.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-dtprocnum.h
dl-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-sysdep.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-tls.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-trampoline.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
e_sqrtl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
elf-initfini.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ffs.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ffsll.S
gccframe.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hp-timing.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
htonl.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
htons.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies Remove dbl-64/wordsize-64 (part 2) 2021-01-07 15:26:26 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldiv.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ldsodefs.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libc-tls.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lldiv.S
local-soft-fp.h Remove sysdeps/alpha/soft-fp directory. 2018-05-23 17:29:20 +00:00
lshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
machine-gmon.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memchr.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memset.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memusage.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nscd-types.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_add.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cmp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cmpe.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cvtqux.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cvtqx.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cvttx.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cvtxq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_cvtxt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_div.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_mul.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_nintxq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ots_sub.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
preconfigure
rawmemchr.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
reml.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
remlu.S
remq.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
remqu.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setjmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sfp-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stackinfo.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
start.S Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
stpcpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stpncpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strcat.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strchr.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strcmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strcpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strlen.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strncat.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strncmp.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strncpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strrchr.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stxcpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stxncpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sub_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Subdirs
submul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tininess.h
tls-macros.h
tst-audit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
udiv_qrnnd.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Remove sysdeps/alpha/soft-fp directory. 2018-05-23 17:29:20 +00:00