glibc/sysdeps/sparc/sparc32
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
fpu Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sparcv9 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
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
alloca.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
backtrace.h
bsd-_setjmp.S
bsd-setjmp.S
bzero.c
configure sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
configure.ac sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
dl-irel.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
dl-plt.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
dotmul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
ieee754.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Implies
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
lshift.S 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.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
memcpy.S 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
mul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread_spin_lock.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthread_spin_trylock.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pthreaddef.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_add.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_cmp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_cmpe.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_div.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_dtoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_feq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_fge.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_fgt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_fle.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_flt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_fne.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_itoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_lltoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_mul.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_neg.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtod.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtoi.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtoll.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtos.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtou.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_qtoull.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_sqrt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_stoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_sub.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_ulltoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_util.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
q_utoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
rshift.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sdiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03: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
stackguard-macros.h
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
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
strrchr.c
sub_n.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
submul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tls-macros.h
tst-audit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
udiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
umul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
urem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
Versions