mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
[!SHARED] (libc_start_main): Pass _dl_random to _dl_setup_stack_chk_guard.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1998-2006, 2007 Free Software Foundation, Inc.
|
/* Copyright (C) 1998-2006, 2007, 2009 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@@ -140,7 +140,7 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL),
|
|||||||
__pthread_initialize_minimal ();
|
__pthread_initialize_minimal ();
|
||||||
|
|
||||||
/* Set up the stack checker's canary. */
|
/* Set up the stack checker's canary. */
|
||||||
uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard ();
|
uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard (_dl_random);
|
||||||
# ifdef THREAD_SET_STACK_GUARD
|
# ifdef THREAD_SET_STACK_GUARD
|
||||||
THREAD_SET_STACK_GUARD (stack_chk_guard);
|
THREAD_SET_STACK_GUARD (stack_chk_guard);
|
||||||
# else
|
# else
|
||||||
|
Reference in New Issue
Block a user