glibc/sysdeps/sparc/sparc64
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 Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
fpu Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
multiarch 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
align-cpy.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
backtrace.h Use libgcc unwinder for sparc backtraces, if available. 2013-01-21 14:15:30 -08:00
bzero.c Sparc string routines from Jakub. 1999-03-29 13:25:15 +00: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
hp-timing.h 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-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
memcmp.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
memmove.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_init.c SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07: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
pthread_spin_unlock.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
qp_add.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_cmp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_cmpe.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_div.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_dtoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_feq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_fge.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_fgt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_fle.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_flt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_fne.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_itoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_mul.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_neg.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtod.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtoi.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtos.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtoui.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtoux.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_qtox.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_sqrt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_stoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_sub.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_uitoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_util.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_uxtoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qp_xtoq.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rawmemchr.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
rtld-memcpy.c Fix sparc build. 2014-11-14 10:32:52 -08:00
rtld-memmove.c sparc: assembly version of memmove for ultra1+ 2017-12-14 08:47:09 -02:00
rtld-memset.c Use generic memset/memcpy in rtld on sparcv9/sparc64. 2012-03-28 22:22:15 -07:00
sfp-machine.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stackguard-macros.h BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04: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
strcspn.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
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
strpbrk.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strrchr.c Sparc string routines from Jakub. 1999-03-29 13:25:15 +00:00
strspn.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
submul_1.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tls-macros.h Split tls-macros.h into sysdeps directories. 2012-07-17 11:30:58 +00:00
tst-audit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions Remove sysdeps/sparc/sparc64/soft-fp directory. 2018-05-25 20:00:51 +00:00