mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-21 04:31:04 +08:00
035c012e32
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. |
||
---|---|---|
.. | ||
bits | ||
nofpu | ||
nptl | ||
rv32 | ||
rv64 | ||
rvd | ||
rvf | ||
sys | ||
__longjmp.S | ||
bsd-_setjmp.c | ||
bsd-setjmp.c | ||
configure | ||
configure.ac | ||
dl-irel.h | ||
dl-machine.h | ||
dl-tls.h | ||
dl-trampoline.S | ||
e_sqrtl.c | ||
fpu_control.h | ||
gccframe.h | ||
Implies | ||
jmpbuf-offsets.h | ||
jmpbuf-unwind.h | ||
ldsodefs.h | ||
libc-tls.c | ||
linkmap.h | ||
machine-gmon.h | ||
Makefile | ||
math-tests-snan-payload.h | ||
math-tests-trap.h | ||
memusage.h | ||
preconfigure | ||
setjmp.S | ||
sfp-machine.h | ||
sotruss-lib.c | ||
stackinfo.h | ||
start.S | ||
tininess.h | ||
tls-macros.h | ||
tst-audit.h |