diff options
Diffstat (limited to 'csu/libc-start.c')
-rw-r--r-- | csu/libc-start.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/csu/libc-start.c b/csu/libc-start.c index 333a4cc718..ae6abdeecb 100644 --- a/csu/libc-start.c +++ b/csu/libc-start.c @@ -22,6 +22,7 @@ #include <ldsodefs.h> #include <exit-thread.h> #include <elf/dl-keysetup.h> +#include <malloc/malloc-internal.h> extern void __libc_init_first (int argc, char **argv, char **envp); @@ -210,6 +211,11 @@ LIBC_START_MAIN (int (*main) (int, char **, char ** MAIN_AUXVEC_DECL), __pointer_chk_guard_local = keys.pointer; # endif + /* In the non-shared case, we initialize the heap guard + directly. */ + __malloc_header_guard = keys.heap_header; + __malloc_footer_guard = keys.heap_footer; + #endif /* Register the destructor of the dynamic linker if there is any. */ |