glibc/sysdeps/unix/sysv/linux/mips/mips64/n64
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
..
arch-syscall.h Update syscall lists for Linux 5.11. 2021-02-19 21:16:27 +00:00
c++-types.data MIPS: Consolidate nptl/ subdirectories under linux/... 2014-06-27 11:41:04 -07:00
fts64.c Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
fts.c Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
ftw64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ftw.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ioctl.S Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
jmp_buf-macros.h Add jmp_buf-macros.h 2017-11-09 05:10:03 -08:00
ld.abilist ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
libc.abilist Reduce the statically linked startup code [BZ #23323] 2021-02-25 12:13:02 +01:00
libresolv.abilist Ignore absolute symbols in ABI tests. 2018-05-04 15:46:32 +00:00
posix_fadvise64.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sendfile64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
syscalls.list linux: Consolidate statfs implementations 2021-02-11 08:00:11 -03:00