mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
35f1e82763
* configure.in: Add --enable-stackguard-randomization option. (ENABLE_STACKGUARD_RANDOMIZE): New define. * config.h.in (ENABLE_STACKGUARD_RANDOMIZE): Add. * sysdeps/unix/sysv/linux/dl-osinfo.h: Include stdint.h. (_dl_setup_stack_chk_guard): New inline function. * sysdeps/generic/dl-osinfo.h: Include stdint.h. (_dl_setup_stack_chk_guard): New inline function. * elf/rtld.c (__stack_chk_guard): New variable. (dl_main): Remove all traces of TLS_INIT_TP_EXPENSIVE. Set __stack_chk_guard to _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined. * elf/Versions (ld): Export __stack_chk_guard@@GLIBC_2.4. * sysdeps/generic/libc-start.c (__stack_chk_guard): New variable. (__libc_start_main): Set __stack_chk_guard to _dl_setup_stack_chk_guard (), use THREAD_SET_STACK_GUARD if defined. * sysdeps/generic/libc-tls.c (__libc_setup_tls): Remove all traces of TLS_INIT_TP_EXPENSIVE. * debug/Versions (libc): Export __stack_chk_fail@@GLIBC_2.4. * debug/Makefile (routines): Add stack_chk_fail. (static-only-routines): Add stack_chk_fail_local. * debug/stack_chk_fail_local.c: New file. * debug/stack_chk_fail.c: New file. * elf/Makefile: Add rules to build and run tst-stackguard1{,-static} tests. * elf/tst-stackguard1.c: New file. * elf/tst-stackguard1-static.c: New file. * elf/stackguard-macros.h: New file. |
||
---|---|---|
.. | ||
backtrace-tst.c | ||
catchsegv.sh | ||
chk_fail.c | ||
execinfo.h | ||
fgets_chk.c | ||
fgets_u_chk.c | ||
fprintf_chk.c | ||
getcwd_chk.c | ||
gets_chk.c | ||
getwd_chk.c | ||
Makefile | ||
noophooks.c | ||
pcprofile.c | ||
pcprofiledump.c | ||
pread64_chk.c | ||
pread_chk.c | ||
printf_chk.c | ||
read_chk.c | ||
readlink_chk.c | ||
recv_chk.c | ||
recvfrom_chk.c | ||
snprintf_chk.c | ||
sprintf_chk.c | ||
stack_chk_fail_local.c | ||
stack_chk_fail.c | ||
test-stpcpy_chk.c | ||
test-strcpy_chk.c | ||
tst-chk1.c | ||
tst-chk2.c | ||
tst-chk3.c | ||
tst-lfschk1.c | ||
tst-lfschk2.c | ||
tst-lfschk3.c | ||
Versions | ||
vfprintf_chk.c | ||
vprintf_chk.c | ||
vsnprintf_chk.c | ||
vsprintf_chk.c | ||
warning-nop.c | ||
xtrace.sh |