mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00: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.
30 lines
839 B
Plaintext
30 lines
839 B
Plaintext
libc {
|
|
GLIBC_2.1 {
|
|
# functions used in other libraries
|
|
__backtrace; __backtrace_symbols; __backtrace_symbols_fd;
|
|
|
|
# b*
|
|
backtrace; backtrace_symbols; backtrace_symbols_fd;
|
|
}
|
|
GLIBC_2.2 {
|
|
# These are to support some gcc features.
|
|
__cyg_profile_func_enter; __cyg_profile_func_exit;
|
|
}
|
|
GLIBC_2.3.4 {
|
|
__chk_fail;
|
|
__memcpy_chk; __memmove_chk; __mempcpy_chk; __memset_chk; __stpcpy_chk;
|
|
__strcat_chk; __strcpy_chk; __strncat_chk; __strncpy_chk;
|
|
__sprintf_chk; __vsprintf_chk; __snprintf_chk; __vsnprintf_chk;
|
|
__printf_chk; __fprintf_chk; __vprintf_chk; __vfprintf_chk;
|
|
__gets_chk;
|
|
}
|
|
GLIBC_2.4 {
|
|
__fgets_chk; __fgets_unlocked_chk;
|
|
__read_chk; __pread_chk; __pread64_chk;
|
|
__readlink_chk; __getcwd_chk; __getwd_chk;
|
|
__recv_chk; __recvfrom_chk;
|
|
|
|
__stack_chk_fail;
|
|
}
|
|
}
|