* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take
authorUlrich Drepper <drepper@redhat.com>
Sun, 11 Jan 2009 04:44:06 +0000 (04:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 11 Jan 2009 04:44:06 +0000 (04:44 +0000)
commit965cb60a21674edb8e20b1a2a41297bcd4622361
tree09300bc9d55e29ad73d7dde4ad75bb96cc51c103
parent5b656a0d301740e1be7062f950d0a4f00c471434
* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Take

one parameter.  If non-NULL use it to initialize return value.
(_dl_setup_pointer_guard): New function.
* sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
* sysdeps/generic/ldsodefs.h: Declare _dl_random.
* elf/rtld.c (security_init): Pass _dl_random to
_dl_setup_stack_chk_guard.  Call _dl_setup_pointer_guard to initialize
pointer_chk_guard.
* elf/dl-sysdep.c (_dl_random): New variable.
(_dl_sysdep_start): Handle AT_RANDOM.
(_dl_show_auxv): Likewise.
* elf/dl-support.c (_dl_random): New variable.
(_dl_aux_init): Handle AT_RANDOM.
* csu/libc-start.c [!SHARED] (libc_start_main): Pass _dl_random
to _dl_setup_stack_chk_guard.

* elf/elf.h (AT_RANDOM): Define AT_BASE_PLATFORM and AT_RANDOM.
ChangeLog
elf/dl-support.c
elf/dl-sysdep.c
elf/rtld.c
sysdeps/generic/dl-osinfo.h
sysdeps/generic/ldsodefs.h
sysdeps/unix/sysv/linux/dl-osinfo.h